diff options
author | Jim Meyering <meyering@redhat.com> | 2008-11-30 17:36:15 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-01-13 08:21:53 +0100 |
commit | 19b4d0fb6a9dff94b74fc948880da2f0c7ddd3e9 (patch) | |
tree | 814f9df5ea6982ecd81e99b9c446eab253ad909c /lib/inttostr.c | |
parent | b7cb23a66cd14b33c65e4fc95cbc5e6a4ed51fee (diff) | |
download | gnulib-19b4d0fb6a9dff94b74fc948880da2f0c7ddd3e9.tar.gz |
inttostr.c: suppress a warning
* lib/inttostr.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
to ignore "...unsigned expression < 0 is always false" warnings.
Diffstat (limited to 'lib/inttostr.c')
-rw-r--r-- | lib/inttostr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/inttostr.c b/lib/inttostr.c index 4ba71f5582..ed6a6933de 100644 --- a/lib/inttostr.c +++ b/lib/inttostr.c @@ -1,6 +1,6 @@ /* inttostr.c -- convert integers to printable strings - Copyright (C) 2001, 2006 Free Software Foundation, Inc. + Copyright (C) 2001, 2006, 2008 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 @@ -17,6 +17,11 @@ /* Written by Paul Eggert */ +/* 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" +#endif + #include <config.h> #include "inttostr.h" |