From 5050ee058cefb0bb7ac6f15b726a83fe4d590ed9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 23 Jun 2016 14:51:02 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ tests/test-intprops.c | 9 +++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8a83350ba7..01805a6e25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-06-23 Paul Eggert + + 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 xalloc-oversized: port to GCC 7; fewer warnings diff --git a/tests/test-intprops.c b/tests/test-intprops.c index 51fe09638e..0a8ddcd748 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.39.5