public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: testsuite: avoid "conflicting types" gcc warning
@ 2021-09-03 10:16 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2021-09-03 10:16 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d5cc66426b49068919cf3a3c44e186c38ae2fc19
commit d5cc66426b49068919cf3a3c44e186c38ae2fc19
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Fri Sep 3 12:13:51 2021 +0200
Cygwin: testsuite: avoid "conflicting types" gcc warning
With gcc 11.2:
test.h:50:5: warning: conflicting types for built-in function ‘execve’; expected ‘int(const char *, char * const*)’ [-Wbuiltin-declaration-mismatch]
test.h:51:5: warning: conflicting types for built-in function ‘execv’; expected ‘int(const char *, char * const*)’ [-Wbuiltin-declaration-mismatch]
test.h:52:5: warning: conflicting types for built-in function ‘execvp’; expected ‘int(const char *, char * const*)’ [-Wbuiltin-declaration-mismatch]
Fix prototypes accordingly.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/testsuite/libltp/include/test.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/winsup/testsuite/libltp/include/test.h b/winsup/testsuite/libltp/include/test.h
index 8cffea4cb..757f3b8a1 100644
--- a/winsup/testsuite/libltp/include/test.h
+++ b/winsup/testsuite/libltp/include/test.h
@@ -47,9 +47,9 @@
#undef execv
#undef execve
-int execve(const char *, const char * const [], char * const *);
-int execv(const char *, const char * const []);
-int execvp(const char *, const char * const []);
+int execve(const char *, char * const [], char * const *);
+int execv(const char *, char * const []);
+int execvp(const char *, char * const []);
/* CGF: Avoid compilation warnings for undefined functions */
extern int setregid (gid_t, gid_t);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-03 10:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 10:16 [newlib-cygwin] Cygwin: testsuite: avoid "conflicting types" gcc warning Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).