GNU bug report logs - #11207
configure: new option --enable-gcc-warnings

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Mon, 9 Apr 2012 08:00:02 UTC

Severity: wishlist

Tags: patch

Found in version 24.1

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 11207 <at> debbugs.gnu.org
Subject: bug#11207: configure: new option --enable-gcc-warnings
Date: Tue, 03 Jul 2012 15:37:50 -0400
Paul Eggert wrote:

> --- src/regex.c	2012-01-19 07:21:25 +0000
> +++ src/regex.c	2012-04-09 07:45:59 +0000
> @@ -33,6 +33,19 @@
>    #pragma alloca
>  #endif
>  
> +/* Ignore some GCC warnings for now.  This section should go away
> +   once the Emacs and Gnulib regex code is merged.  */
> +#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
> +# pragma GCC diagnostic ignored "-Wstrict-overflow"
> +# ifndef emacs
> +#  pragma GCC diagnostic ignored "-Wunused-but-set-variable"
> +#  pragma GCC diagnostic ignored "-Wunused-function"
> +#  pragma GCC diagnostic ignored "-Wunused-macros"
> +#  pragma GCC diagnostic ignored "-Wunused-result"
> +#  pragma GCC diagnostic ignored "-Wunused-variable"
> +# endif
> +#endif

For me on RHEL6, using gcc 4.4.6 20110731 (Red Hat 4.4.6-3), the
"-Wunused-result" line causes a gripe when building lib-src/regex.o:

src/regex.c:44: warning: unknown option after '#pragma GCC diagnostic' kind




This bug report was last modified 12 years and 323 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.