summaryrefslogtreecommitdiff
path: root/tests/test-nl_langinfo.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-10-17 22:15:52 +0200
committerBruno Haible <bruno@clisp.org>2010-10-17 22:15:52 +0200
commit7d435e3a09e60f2eba6ec7eb4c2d8ae4ccd0ed8a (patch)
tree2c0ea05ef664443b06f5c76dca3fe4acbb2b7b86 /tests/test-nl_langinfo.c
parentf3854f3e839144a3f747e4a68f8c5f9413b9c225 (diff)
downloadgnulib-7d435e3a09e60f2eba6ec7eb4c2d8ae4ccd0ed8a.tar.gz
nl_langinfo tests: Silence some warnings.
* tests/test-nl_langinfo.c: Silence -Wtype-limits warnings. Reported by Jim Meyering.
Diffstat (limited to 'tests/test-nl_langinfo.c')
-rw-r--r--tests/test-nl_langinfo.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test-nl_langinfo.c b/tests/test-nl_langinfo.c
index ec89b3f753..27b1ed668c 100644
--- a/tests/test-nl_langinfo.c
+++ b/tests/test-nl_langinfo.c
@@ -1,5 +1,5 @@
/* Test of nl_langinfo replacement.
- Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2009-2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -30,6 +30,13 @@ SIGNATURE_CHECK (nl_langinfo, char *, (nl_item));
#include "c-strcase.h"
#include "macros.h"
+/* For GCC >= 4.2, silence the warnings
+ "comparison of unsigned expression >= 0 is always true"
+ in this file. */
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
+# pragma GCC diagnostic ignored "-Wtype-limits"
+#endif
+
int
main (int argc, char *argv[])
{