Mercurial > hg > octave-kai > gnulib-hg
changeset 14431:012d0dca95b2
ignore-value tests: Avoid warnings.
* tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
empty for gcc < 3.4.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 14 Mar 2011 23:07:46 +0100 |
parents | 23262a7852a6 |
children | dcc1567d7f4e |
files | ChangeLog tests/test-ignore-value.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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.
--- a/tests/test-ignore-value.c +++ b/tests/test-ignore-value.c @@ -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__))