From unknown Sat Jun 21 03:21:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6577 <6577@debbugs.gnu.org> To: bug#6577 <6577@debbugs.gnu.org> Subject: Status: turn on -Wstrict-prototypes by default Reply-To: bug#6577 <6577@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:21:30 +0000 retitle 6577 turn on -Wstrict-prototypes by default reassign 6577 emacs submitter 6577 Dan Nicolaescu severity 6577 wishlist tag 6577 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 06 22:59:56 2010 Received: (at submit) by debbugs.gnu.org; 7 Jul 2010 02:59:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWKrc-000075-3E for submit@debbugs.gnu.org; Tue, 06 Jul 2010 22:59:56 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWKra-000070-1m for submit@debbugs.gnu.org; Tue, 06 Jul 2010 22:59:54 -0400 Received: from lists.gnu.org ([199.232.76.165]:33992) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OWKrW-0006u7-LY for submit@debbugs.gnu.org; Tue, 06 Jul 2010 22:59:50 -0400 Received: from [199.232.76.173] (port=44764 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWKrV-0005q2-VT for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 22:59:49 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OWKrU-0006u1-NH for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 22:59:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL autolearn=ham version=3.1.0 Received: from fencepost.gnu.org ([140.186.70.10]:56443) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OWKrU-0006tx-HO for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 22:59:48 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OWKrU-00056X-Cw for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 22:59:48 -0400 To: bug-gnu-emacs@gnu.org Subject: turn on -Wstrict-prototypes by default From: Dan Nicolaescu X-Debbugs-No-Ack: yes Date: Tue, 06 Jul 2010 22:59:48 -0400 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) This patch turns on -Wstrict-prototypes to help transition to standard C. [Archived here so that it does not get lost]. The error and message declarations in lisp.h need to be converted to standard C (and the definition should use variable number of arguments), otherwise this patch results in many warnings. But if someone wants to check this in to speed up the process... === modified file 'configure.in' --- configure.in 2010-07-02 12:55:51 +0000 +++ configure.in 2010-07-02 19:31:41 +0000 @@ -757,6 +757,20 @@ CFLAGS="$SAVE_CFLAGS" unset has_option unset SAVE_CFLAGS +### Use -Wstrict-prototypes if the compiler supports it +AC_MSG_CHECKING([whether gcc understands -Wstrict-prototypes]) +SAVE_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -Wstrict-prototypes" +AC_TRY_COMPILE([], [], has_option=yes, has_option=no,) +if test $has_option = yes; then + C_WARNINGS_SWITCH="-Wstrict-prototypes $C_WARNINGS_SWITCH" +fi +AC_MSG_RESULT($has_option) +CFLAGS="$SAVE_CFLAGS" +unset has_option +unset SAVE_CFLAGS + + #### Some other nice autoconf tests. dnl checks for programs From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 06 03:47:12 2013 Received: (at 6577-done) by debbugs.gnu.org; 6 Feb 2013 08:47:12 +0000 Received: from localhost ([127.0.0.1]:38716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U30et-000587-RE for submit@debbugs.gnu.org; Wed, 06 Feb 2013 03:47:11 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:53623) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U30er-00057z-NQ for 6577-done@debbugs.gnu.org; Wed, 06 Feb 2013 03:47:10 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U30dd-0007Yx-HM; Wed, 06 Feb 2013 03:45:53 -0500 From: Glenn Morris To: 6577-done@debbugs.gnu.org Subject: Re: bug#6577: turn on -Wstrict-prototypes by default References: X-Spook: BATF AK-47 Axis of Evil rail gun passwd Fedayeen InfoSec X-Ran: SMW94qzp=>v-\I7mB&j:CGs1ZD\4J!>K*Yot!RU(1a{(R(uQ%t~('t=kH (Dan Nicolaescu's message of "Tue, 06 Jul 2010 22:59:48 -0400") Message-ID: <0t7gmlg79a.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 6577-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) Version: 24.3 IIUC we now have this and much more via gnulib with the --enable-gcc-warnings option of configure. From unknown Sat Jun 21 03:21:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 Mar 2013 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator