]> git.eshelyaron.com Git - emacs.git/commitdiff
Limit -Wconversion to GCC >= 4.7
authorDaniel Colascione <dancol@dancol.org>
Mon, 19 Feb 2018 16:39:34 +0000 (08:39 -0800)
committerDaniel Colascione <dancol@dancol.org>
Mon, 19 Feb 2018 17:01:41 +0000 (09:01 -0800)
src/pdumper.c

index 9a0770d68ed20f66a583a18508759a72674c4d1e..c1d50f00159018329a95336450fa0962d54d2df4 100644 (file)
@@ -61,7 +61,7 @@
 # define CHECK_STRUCTS 1
 #endif
 
-#ifdef __GNUC__
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)
 # pragma GCC diagnostic error "-Wconversion"
 # pragma GCC diagnostic error "-Wshadow"
 # define ALLOW_IMPLICIT_CONVERSION                       \