|
From: | Angelo Graziosi |
Subject: | Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64 |
Date: | Thu, 1 Sep 2016 09:44:59 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Il 01/09/2016 04:37, Eli Zaretskii ha scritto:
From: Angelo Graziosi <address@hidden> Date: Wed, 31 Aug 2016 21:56:45 +0200 Cc: address@hidden As always, Ken's suggestions are right! Now this test case, $ cat test.c /*#include <stdint.h>*/ #include <unistd.h> /*extern intptr_t execve (const char *, char * const *, char * const *);*/ /*extern intptr_t execve (const char *, char * const [], char * const []);*/ extern int execve (const char *, char * const *, char * const *); int main() { return 0; } builds without warnings with $ gcc -Wall test.cThanks. What happens if you remove the unistd.h inclusion?
It builds without warnings. So the simplest test case is: extern int execve (const char *, char * const *, char * const *); int main() { return 0; } Ciao, Angelo.
[Prev in Thread] | Current Thread | [Next in Thread] |