The MinGW.org Windows System Libraries
Revision | 0709a645730efd874aa6d72e4673ddd01f33f00a (tree) |
---|---|
Time | 2018-08-27 04:40:38 |
Author | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Circumvent <process.h> testsuite failure with GCC-7+.
@@ -1,3 +1,11 @@ | ||
1 | +2018-08-26 Keith Marshall <keith@users.osdn.me> | |
2 | + | |
3 | + Circumvent <process.h> testsuite failure with GCC-7+. | |
4 | + | |
5 | + * include/process.h (execv, execve, execvp): Subject declarations to | |
6 | + #pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch", if... | |
7 | + [__cplusplus && __IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7]: ...this. | |
8 | + | |
1 | 9 | 2018-04-16 Keith Marshall <keith@users.osdn.me> |
2 | 10 | |
3 | 11 | Suppress glob-brace expansion within quoted arguments. |
@@ -189,6 +189,15 @@ intptr_t execlp (const char *, const char *, ...); | ||
189 | 189 | _CRTIMP __cdecl __MINGW_NOTHROW |
190 | 190 | intptr_t execlpe (const char *, const char *,...); |
191 | 191 | |
192 | +#if defined __cplusplus && __IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7 | |
193 | +/* From GCC-7 onwards, with "-Wsystem-headers" enabled, the C++ compiler | |
194 | + * may emit unwanted "-Wbuiltin-declaration-mismatch" diagnostics related | |
195 | + * to the following "execv" function declarations; these will precipitate | |
196 | + * testsuite failures, so suppress them. | |
197 | + */ | |
198 | +# pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch" | |
199 | +#endif | |
200 | + | |
192 | 201 | _CRTIMP __cdecl __MINGW_NOTHROW |
193 | 202 | intptr_t execv (const char *, const char * const *); |
194 | 203 |
@@ -198,6 +207,12 @@ intptr_t execve (const char *, const char * const *, const char * const *); | ||
198 | 207 | _CRTIMP __cdecl __MINGW_NOTHROW |
199 | 208 | intptr_t execvp (const char *, const char * const *); |
200 | 209 | |
210 | +#if defined __cplusplus && __IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7 | |
211 | +/* Re-enable previously suppressed "-Wbuiltin-declaration-mismatch" warnings. | |
212 | + */ | |
213 | +# pragma GCC diagnostic warning "-Wbuiltin-declaration-mismatch" | |
214 | +#endif | |
215 | + | |
201 | 216 | _CRTIMP __cdecl __MINGW_NOTHROW |
202 | 217 | intptr_t execvpe (const char *, const char * const *, const char * const *); |
203 | 218 |