From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Re: Too many warnings building Emacs with GCC 6 on MSYS2-MinGW64 Date: Wed, 31 Aug 2016 14:11:41 -0400 Message-ID: References: <50083875-fbf6-d6b2-ffac-08c17c2bc696@alice.it> <83r395ko7o.fsf@gnu.org> <83h9a1kks6.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1472667119 2025 195.159.176.226 (31 Aug 2016 18:11:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2016 18:11:59 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 Cc: emacs-devel@gnu.org To: Angelo Graziosi , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 31 20:11:55 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 1bf9zP-0008NO-2u for ged-emacs-devel@m.gmane.org; Wed, 31 Aug 2016 20:11:55 +0200 Original-Received: from localhost ([::1]:55419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf9zN-0001Vl-Om for ged-emacs-devel@m.gmane.org; Wed, 31 Aug 2016 14:11:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf9zH-0001UU-Jm for emacs-devel@gnu.org; Wed, 31 Aug 2016 14:11:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bf9zC-0004zY-Bg for emacs-devel@gnu.org; Wed, 31 Aug 2016 14:11:46 -0400 Original-Received: from limerock04.mail.cornell.edu ([128.84.13.244]:35410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bf9zC-0004xi-7q; Wed, 31 Aug 2016 14:11:42 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u7VIBYbD009549; Wed, 31 Aug 2016 14:11:34 -0400 Original-Received: from [192.168.1.9] (mta-68-175-148-36.twcny.rr.com [68.175.148.36] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u7VIBW11024533 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 31 Aug 2016 14:11:33 -0400 In-Reply-To: X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-MIME-Autoconverted: from 8bit to quoted-printable by limerock04.mail.cornell.edu id u7VIBYbD009549 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 128.84.13.244 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:207033 Archived-At: On 8/31/2016 1:40 PM, Angelo Graziosi wrote: > $ 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 =E2=80=98= execve=E2=80=99 > extern intptr_t execve (const char *, char * const [], char * const []= ); According to http://pubs.opengroup.org/onlinepubs/9699919799/functions/exec.html http://man7.org/linux/man-pages/man2/execve.2.html you should include , and the return type should be int. Ken