From 8ea47e3a5073256b30a42d34a2654e4551ce7e78 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 12 Sep 2012 21:14:33 -0700 Subject: [PATCH] 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 . --- src/ChangeLog | 5 +++++ src/emacsgtkfixed.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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) \ -- 2.39.2