From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64 Date: Wed, 31 Aug 2016 21:18:53 +0300 Message-ID: <834m60ls36.fsf@gnu.org> References: <50083875-fbf6-d6b2-ffac-08c17c2bc696@alice.it> <83r395ko7o.fsf@gnu.org> <83h9a1kks6.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1472667638 29851 195.159.176.226 (31 Aug 2016 18:20:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2016 18:20:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 31 20:20: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 1bfA7j-0007E7-PY for ged-emacs-devel@m.gmane.org; Wed, 31 Aug 2016 20:20:31 +0200 Original-Received: from localhost ([::1]:55441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfA7h-0004XZ-DP for ged-emacs-devel@m.gmane.org; Wed, 31 Aug 2016 14:20:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfA7B-0004XS-1W for emacs-devel@gnu.org; Wed, 31 Aug 2016 14:19:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfA76-0006gA-OQ for emacs-devel@gnu.org; Wed, 31 Aug 2016 14:19:55 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfA76-0006fY-L2; Wed, 31 Aug 2016 14:19:52 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3828 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bfA6y-0007XI-5N; Wed, 31 Aug 2016 14:19:51 -0400 In-reply-to: (message from Angelo Graziosi on Wed, 31 Aug 2016 19:40:50 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:207035 Archived-At: > Cc: emacs-devel@gnu.org > From: Angelo Graziosi > Date: Wed, 31 Aug 2016 19:40:50 +0200 > > > If you change the prototype in ms-w32.h to say this: > > > > extern intptr_t execve (const char *, char * const [], char * const []); > > > > do these warnings go away? > > > > Really I already did this with this simple test case: I couldn't know you did that already, could I? > $ cat test.c > #include > > /*extern intptr_t execve (const char *, char * const *, char * const *);*/ > extern intptr_t execve (const char *, char * const [], char * const []); > > int main() > { > return 0; > } > > $ gcc test.c > test.c:4:17: warning: conflicting types for built-in function ‘execve’ > extern intptr_t execve (const char *, char * const [], char * const []); Then I don't know what to do about this. Since GCC doesn't show the prototype of its built-in, I have no idea which part of the prototype triggers the warning. The above suggestion was taken straight out of the MinGW64 headers, which is the best I can do. Maybe ask on the MinGW64 forum about this. They might be more privy to GCC internals than I am. Sorry.