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:
parent
9069cb9171
commit
d5cc66426b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue