]> Savannah Git Hosting - gnulib.git/commitdiff
intprops-test: suppress -Woverlength-strings
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Nov 2015 15:46:32 +0000 (07:46 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Nov 2015 15:49:07 +0000 (07:49 -0800)
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.

ChangeLog
tests/test-intprops.c

index 9502d654bb39fe5fe7899e19833fb73ddb64c838..336cd3d4771f701d735fdc371bc16d5cb12efba5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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()
index 007823ed1a90ea925804c924820265574df06bf8..6b1141756253b2c2fb8b40f3b529eed282e0e428 100644 (file)
 
 /* 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