X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-intprops.c;h=aeb116813fd7b520bc70096eeac7fde7901bd466;hb=0d37a2e60081400c4ecefbb106e8a1749b3de2b0;hp=8fc582b90fc37e2c47bf9c3644cc9d5b860ba72b;hpb=1e0b92c990dfeb136cda606e2914e2d87b00bd74;p=gnulib.git diff --git a/tests/test-intprops.c b/tests/test-intprops.c index 8fc582b90..aeb116813 100644 --- a/tests/test-intprops.c +++ b/tests/test-intprops.c @@ -1,5 +1,5 @@ /* Test intprops.h. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2012 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 @@ -16,6 +16,12 @@ /* Written by Paul Eggert. */ +/* Tell gcc not to warn about the many (X < 0) expressions that + the overflow macros expand to. */ +#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ +# pragma GCC diagnostic ignored "-Wtype-limits" +#endif + #include #include "intprops.h"