]> code.delx.au - gnu-emacs/commitdiff
* emacsgtkfixed.c: Port to GCC 4.6.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Jul 2013 06:38:51 +0000 (07:38 +0100)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Jul 2013 06:38:51 +0000 (07:38 +0100)
GCC 4.6 complains about -Wunused-local-typedefs, introduced in 4.7.

src/ChangeLog
src/emacsgtkfixed.c

index 1423b9d366e92395ab5e4d635f463c856d564c75..97d9cc9f41d232fd0fece4d611b2c356a12774e9 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * emacsgtkfixed.c: Port to GCC 4.6.
+       GCC 4.6 complains about -Wunused-local-typedefs, introduced in 4.7.
+
 2013-07-23  Juanma Barranquero  <lekktu@gmail.com>
 
        * callproc.c (child_setup)[!WINDOWSNT]: Move exec_errno and pid
index 970683da9c47852d5c69ef4093d72b9acf927974..8b19d89f3a0d78688b82e913c67e33a30c613ebb 100644 (file)
@@ -28,7 +28,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #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