From: Paul Eggert Date: Wed, 15 May 2013 07:12:12 +0000 (-0700) Subject: inttostr: port --enable-gcc-warnings to clang X-Git-Tag: v0.1~138 X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=a3232e87aa43983f16befedc0b6311ac02aceacb inttostr: port --enable-gcc-warnings to clang * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare. --- diff --git a/ChangeLog b/ChangeLog index b7aceaa5f..b69e4d5b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2013-05-15 Paul Eggert + 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 . diff --git a/lib/anytostr.c b/lib/anytostr.c index 1d2fca498..56ec28d16 100644 --- a/lib/anytostr.c +++ b/lib/anytostr.c @@ -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