bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] intprops-test: port to GCC 6


From: Paul Eggert
Subject: [PATCH] intprops-test: port to GCC 6
Date: Thu, 23 Jun 2016 14:51:59 +0200

* tests/test-intprops.c: Ignore -Woverflow if any GCC version,
since the bug is not fixed in GCC 6.1.
---
 ChangeLog             | 6 ++++++
 tests/test-intprops.c | 9 +++------
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8a83350..01805a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-06-23  Paul Eggert  <address@hidden>
+
+       intprops-test: port to GCC 6
+       * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
+       since the bug is not fixed in GCC 6.1.
+
 2016-06-13  Paul Eggert  <address@hidden>
 
        xalloc-oversized: port to GCC 7; fewer warnings
diff --git a/tests/test-intprops.c b/tests/test-intprops.c
index 51fe096..0a8ddcd 100644
--- a/tests/test-intprops.c
+++ b/tests/test-intprops.c
@@ -22,12 +22,9 @@
 # pragma GCC diagnostic ignored "-Woverlength-strings"
 # pragma GCC diagnostic ignored "-Wtype-limits"
 
-/* Work around a bug in GCC 5.3.1 and earlier; see:
-   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68971
-   Hope it will be fixed by the time GCC 6 comes out.  */
-# if __GNUC__ < 6
-#  pragma GCC diagnostic ignored "-Woverflow"
-# endif
+/* Work around a bug in GCC 6.1 and earlier; see:
+   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68971  */
+# pragma GCC diagnostic ignored "-Woverflow"
 
 #endif
 
-- 
2.5.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]