[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#6577: closed (turn on -Wstrict-prototypes by defau

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#6577: closed (turn on -Wstrict-prototypes by default)
Date: Wed, 06 Feb 2013 08:48:02 +0000

Your message dated Wed, 06 Feb 2013 03:45:53 -0500
with message-id <address@hidden>
and subject line Re: bug#6577: turn on -Wstrict-prototypes by default
has caused the debbugs.gnu.org bug report #6577,
regarding turn on -Wstrict-prototypes by default
to be marked as done.

(If you believe you have received this mail in error, please contact

6577: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6577
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: turn on -Wstrict-prototypes by default Date: Tue, 06 Jul 2010 22:59:48 -0400 User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)
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
+### Use -Wstrict-prototypes if the compiler supports it
+AC_MSG_CHECKING([whether gcc understands -Wstrict-prototypes])
+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"
+unset has_option
 #### Some other nice autoconf tests.
 dnl checks for programs

--- End Message ---
--- Begin Message --- Subject: Re: bug#6577: turn on -Wstrict-prototypes by default Date: Wed, 06 Feb 2013 03:45:53 -0500 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Version: 24.3

IIUC we now have this and much more via gnulib with the
--enable-gcc-warnings option of configure.

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]