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>
This commit is contained in:
Corinna Vinschen 2021-09-03 12:13:51 +02:00
parent 9069cb9171
commit d5cc66426b
1 changed files with 3 additions and 3 deletions

View File

@ -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);