From 9ca960e27a653f6dcaf057eefc5243bf4c223e72 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 23 Jul 2013 07:38:51 +0100 Subject: [PATCH] * emacsgtkfixed.c: Port to GCC 4.6. GCC 4.6 complains about -Wunused-local-typedefs, introduced in 4.7. --- src/ChangeLog | 5 +++++ src/emacsgtkfixed.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 1423b9d366..97d9cc9f41 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-07-23 Paul Eggert + + * emacsgtkfixed.c: Port to GCC 4.6. + GCC 4.6 complains about -Wunused-local-typedefs, introduced in 4.7. + 2013-07-23 Juanma Barranquero * callproc.c (child_setup)[!WINDOWSNT]: Move exec_errno and pid diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c index 970683da9c..8b19d89f3a 100644 --- a/src/emacsgtkfixed.c +++ b/src/emacsgtkfixed.c @@ -28,7 +28,7 @@ along with GNU Emacs. If not, see . */ #include "xterm.h" /* Silence a bogus diagnostic; see GNOME bug 683906. */ -#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) +#if 4 < __GNUC__ + (7 <= __GNUC_MINOR__) # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wunused-local-typedefs" #endif -- 2.39.2