From: Bruno Haible Date: Sun, 19 Dec 2010 16:08:39 +0000 (+0100) Subject: nl_langinfo tests: Avoid gcc warning. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f2e71be8e77f86b9062ee46c9595ac918ceec53;p=pspp nl_langinfo tests: Avoid gcc warning. * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2. --- diff --git a/ChangeLog b/ChangeLog index ead96ea3dc..c2a99f0267 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-12-19 Bruno Haible + + 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 mknod: Avoid error in C++ mode on OSF/1 with GCC. diff --git a/tests/test-nl_langinfo.c b/tests/test-nl_langinfo.c index 41f16d39be..000b45c827 100644 --- a/tests/test-nl_langinfo.c +++ b/tests/test-nl_langinfo.c @@ -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