From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64 Date: Thu, 1 Sep 2016 09:44:59 +0200 Message-ID: <0749368a-c043-ef4b-8722-d5071f17a1e3@alice.it> References: <50083875-fbf6-d6b2-ffac-08c17c2bc696@alice.it> <83r395ko7o.fsf@gnu.org> <83h9a1kks6.fsf@gnu.org> <8337lklqrl.fsf@gnu.org> <11ac6b41-3a59-ec19-c414-151c08a91ba3@alice.it> <83oa48fiqn.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1472715945 32354 195.159.176.226 (1 Sep 2016 07:45:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Sep 2016 07:45:45 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 Cc: kbrown@cornell.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 01 09:45:35 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfMgi-0006mP-FA for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2016 09:45:28 +0200 Original-Received: from localhost ([::1]:57705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfMgg-0007WU-7F for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2016 03:45:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfMga-0007WL-48 for emacs-devel@gnu.org; Thu, 01 Sep 2016 03:45:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfMgV-0000Ie-PI for emacs-devel@gnu.org; Thu, 01 Sep 2016 03:45:19 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:29796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfMgV-0000I8-DT; Thu, 01 Sep 2016 03:45:15 -0400 Original-Received: from [192.168.1.100] (79.45.0.244) by smtp204.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 57C3F8F40071DF24; Thu, 1 Sep 2016 09:45:13 +0200 In-Reply-To: <83oa48fiqn.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.100 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207047 Archived-At: Il 01/09/2016 04:37, Eli Zaretskii ha scritto: >> From: Angelo Graziosi >> Date: Wed, 31 Aug 2016 21:56:45 +0200 >> Cc: emacs-devel@gnu.org >> >> As always, Ken's suggestions are right! >> >> Now this test case, >> >> $ cat test.c >> /*#include */ >> #include >> >> /*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.c > > Thanks. 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.