summaryrefslogtreecommitdiff
path: root/make.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2011-11-14 02:26:00 +0000
committerPaul Smith <psmith@gnu.org>2011-11-14 02:26:00 +0000
commit9fcd90e36cf2ae981199ea185566c71f5742a5c9 (patch)
tree40744661a128ae89e304200680fdca0d24906bbf /make.h
parent83ce81fcaa2f2c80446d96892b626b19564bdc8d (diff)
downloadgunmake-9fcd90e36cf2ae981199ea185566c71f5742a5c9.tar.gz
Changes to resolve warnings.
Fixes Savannah bug #34608.
Diffstat (limited to 'make.h')
-rw-r--r--make.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/make.h b/make.h
index f5fece5..5eb4975 100644
--- a/make.h
+++ b/make.h
@@ -157,8 +157,9 @@ unsigned int get_path_max (void);
# define USHRT_MAX 65535
#endif
-/* Nonzero if the integer type T is signed. */
-#define INTEGER_TYPE_SIGNED(t) ((t) -1 < 0)
+/* Nonzero if the integer type T is signed.
+ Use <= to avoid GCC warnings about always-false expressions. */
+#define INTEGER_TYPE_SIGNED(t) ((t) -1 <= 0)
/* The minimum and maximum values for the integer type T.
Use ~ (t) 0, not -1, for portability to 1's complement hosts. */