Mercurial > gnulib
changeset 37839:61a00709652b
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.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 05 Nov 2015 07:46:32 -0800 |
parents | dec9b61db300 |
children | 4e688461de96 |
files | ChangeLog tests/test-intprops.c |
diffstat | 2 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Nov 04 23:21:03 2015 +0000 +++ b/ChangeLog Thu Nov 05 07:46:32 2015 -0800 @@ -1,3 +1,12 @@ +2015-11-05 Paul Eggert <eggert@cs.ucla.edu> + + 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 <P@draigBrady.com> quotearg: add quotearg_n_style_colon()
--- a/tests/test-intprops.c Wed Nov 04 23:21:03 2015 +0000 +++ b/tests/test-intprops.c Thu Nov 05 07:46:32 2015 -0800 @@ -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