+2023-06-26 Keith Marshall <keith@users.osdn.me>
+
+ Improve testsuite diagnostic message handling.
+
+ * include/process.h [__IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7]: Push
+ diagnostic state, to save the initial setting of, and then ignore...
+ (-Wbuiltin-declaration-mismatch): ...this, prior to declarations of...
+ (execv, execve, execvp): ...these functions; after these declarations,
+ pop the saved diagnostic state, to revert to the original condition,
+ rather than simply, and arbitrarily, enabling the warning.
+
2022-08-26 Keith Marshall <keith@users.osdn.me>
Do not expose private declarations in <search.h>
* $Id$
*
* Written by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
- * Copyright (C) 1997-2001, 2003-2004, 2007-2008, 2016, 2022,
+ * Copyright (C) 1997-2001, 2003-2004, 2007-2008, 2016, 2022, 2023,
* MinGW.OSDN Project
*
*
* the following "execv" function declarations; these will precipitate
* testsuite failures, so suppress them.
*/
+# pragma GCC diagnostic push
# if __GNUC__ >= 9 || defined __cplusplus
/* Prior to GCC-9, this limitation was apparent in the C++ compiler
* only; it became apparent in the C compiler, from GCC-9.
_CRTIMP __cdecl __MINGW_NOTHROW
intptr_t execvp (const char *, const char * const *);
-#if defined __cplusplus && __IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7
+#if __IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7
/* Re-enable previously suppressed "-Wbuiltin-declaration-mismatch" warnings.
*/
-# pragma GCC diagnostic warning "-Wbuiltin-declaration-mismatch"
+# pragma GCC diagnostic pop
#endif
_CRTIMP __cdecl __MINGW_NOTHROW