From: Paul Eggert Date: Thu, 13 Sep 2012 04:14:33 +0000 (-0700) Subject: Better workaround for GNOME bug when --enable-gcc-warnings. X-Git-Tag: emacs-24.2.90~295 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ea47e3a5073256b30a42d34a2654e4551ce7e78;p=emacs.git Better workaround for GNOME bug when --enable-gcc-warnings. * emacsgtkfixed.c (G_STATIC_ASSERT): Remove, undoing last change. Instead, disable -Wunused-local-typedefs. See Dmitry Antipov in . --- diff --git a/src/ChangeLog b/src/ChangeLog index c8588b973f8..2bc041f0435 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,10 @@ 2012-09-13 Paul Eggert + Better workaround for GNOME bug when --enable-gcc-warnings. + * emacsgtkfixed.c (G_STATIC_ASSERT): Remove, undoing last change. + Instead, disable -Wunused-local-typedefs. See Dmitry Antipov in + . + Simplify SIGIO usage (Bug#12408). The code that dealt with SIGIO was crufty and confusing, e.g., it played tricks like "#undef SIGIO" but these tricks were not used diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c index a21d0f8a422..c0d29a640ed 100644 --- a/src/emacsgtkfixed.c +++ b/src/emacsgtkfixed.c @@ -28,9 +28,10 @@ along with GNU Emacs. If not, see . */ #include "xterm.h" /* Silence a bogus diagnostic; see GNOME bug 683906. */ -#include -#undef G_STATIC_ASSERT -#define G_STATIC_ASSERT(x) verify (x) +#if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-local-typedefs" +#endif #define EMACS_TYPE_FIXED emacs_fixed_get_type () #define EMACS_FIXED(obj) \