inttostr: port --enable-gcc-warnings to clang
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 May 2013 07:12:12 +0000 (00:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 May 2013 07:33:37 +0000 (00:33 -0700)
* lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.

ChangeLog
lib/anytostr.c

index b7aceaa..b69e4d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
 
+       inttostr: port --enable-gcc-warnings to clang
+       * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
+
        warnings: port to clang
        Problem reported by Daniel P. Berrange via Eric Blake in
        <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
index 1d2fca4..56ec28d 100644 (file)
@@ -20,6 +20,8 @@
 /* Tell gcc not to warn about the (i < 0) test, below.  */
 #if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
 # pragma GCC diagnostic ignored "-Wtype-limits"
+#elif defined __clang__
+# pragma clang diagnostic ignored "-Wtautological-compare"
 #endif
 
 #include <config.h>