nl_langinfo tests: Avoid gcc warning.
authorBruno Haible <bruno@clisp.org>
Sun, 19 Dec 2010 16:08:39 +0000 (17:08 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 19 Dec 2010 16:08:39 +0000 (17:08 +0100)
* tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.

ChangeLog
tests/test-nl_langinfo.c

index ead96ea3dc02ac19524cd5ae0f33569f32e4313b..c2a99f0267bf4a48fcb2b39873fd7a9a4f26aa09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-19  Bruno Haible  <bruno@clisp.org>
+
+       nl_langinfo tests: Avoid gcc warning.
+       * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
+
 2010-12-19  Bruno Haible  <bruno@clisp.org>
 
        mknod: Avoid error in C++ mode on OSF/1 with GCC.
index 41f16d39be3e6e649976e04a0a56a811a49ad827..000b45c827f0a8dbbfb2fb381e48fa0f187ca4cb 100644 (file)
@@ -30,10 +30,10 @@ SIGNATURE_CHECK (nl_langinfo, char *, (nl_item));
 #include "c-strcase.h"
 #include "macros.h"
 
-/* For GCC >= 4.2, silence the warnings
+/* For GCC >= 4.3, silence the warnings
      "comparison of unsigned expression >= 0 is always true"
    in this file.  */
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
 # pragma GCC diagnostic ignored "-Wtype-limits"
 #endif