Mercurial > hg > octave-lyh > gnulib-hg
changeset 13946:438ac293c649
nl_langinfo tests: Avoid gcc warning.
* tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 19 Dec 2010 17:08:39 +0100 |
parents | 5690eb725721 |
children | 4ca29955b657 |
files | ChangeLog tests/test-nl_langinfo.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/tests/test-nl_langinfo.c +++ b/tests/test-nl_langinfo.c @@ -30,10 +30,10 @@ #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