From: Paul Eggert Date: Thu, 5 Nov 2015 15:46:32 +0000 (-0800) Subject: intprops-test: suppress -Woverlength-strings X-Git-Tag: v1.0~6899 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ca64874789ae1a4932ff547a52d816c4bea91f62;p=gnulib.git intprops-test: suppress -Woverlength-strings Problem reported by Pádraig Brady in: http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html It is not worth the hassle to port this test to compilers that cannot handle long strings in diagnostics. * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings. --- diff --git a/ChangeLog b/ChangeLog index 9502d654bb..336cd3d477 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2015-11-05 Paul Eggert + + intprops-test: suppress -Woverlength-strings + Problem reported by Pádraig Brady in: + http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html + It is not worth the hassle to port this test to compilers that + cannot handle long strings in diagnostics. + * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings. + 2015-11-03 Pádraig Brady quotearg: add quotearg_n_style_colon() diff --git a/tests/test-intprops.c b/tests/test-intprops.c index 007823ed1a..6b11417562 100644 --- a/tests/test-intprops.c +++ b/tests/test-intprops.c @@ -16,9 +16,10 @@ /* Written by Paul Eggert. */ -/* Tell gcc not to warn about the many (X < 0) expressions that - the overflow macros expand to. */ -#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ +/* Tell gcc not to warn about the long expressions that the overflow + macros expand to, or about the (X < 0) expressions. */ +#if 4 < __GNUC__ + (3 <= __GNUC_MINOR__) +# pragma GCC diagnostic ignored "-Woverlength-strings" # pragma GCC diagnostic ignored "-Wtype-limits" #endif