ignore-value tests: Avoid warnings.
authorBruno Haible <bruno@clisp.org>
Mon, 14 Mar 2011 22:07:46 +0000 (23:07 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 14 Mar 2011 22:07:46 +0000 (23:07 +0100)
* tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
empty for gcc < 3.4.

ChangeLog
tests/test-ignore-value.c

index 1ca4ffd..a7c00b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-03-13  Bruno Haible  <bruno@clisp.org>
 
+       ignore-value tests: Avoid warnings.
+       * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
+       empty for gcc < 3.4.
+
+2011-03-13  Bruno Haible  <bruno@clisp.org>
+
        passfd: Fix link error on Solaris.
        * modules/passfd (Description): Correct.
        (Depends-on): Add socketlib.
index 501f79c..6953f4c 100644 (file)
@@ -24,7 +24,7 @@
 #include <stdio.h>
 
 #ifndef _GL_ATTRIBUTE_RETURN_CHECK
-# if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 1)
+# if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4)
 #  define _GL_ATTRIBUTE_RETURN_CHECK
 # else
 #  define _GL_ATTRIBUTE_RETURN_CHECK __attribute__((__warn_unused_result__))