Mercurial > hg > octave-nkf > gnulib-hg
changeset 13809:58a74b3c55fe
ignore-value: make header idempotent
* lib/ignore-value.h: Add double-inclusion guards.
Reported by Stefan Berger.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Fri, 15 Oct 2010 16:05:27 -0600 |
parents | 62af42b5aad9 |
children | 3ad36edfec7f |
files | ChangeLog lib/ignore-value.h |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-10-15 Eric Blake <eblake@redhat.com> + + ignore-value: make header idempotent + * lib/ignore-value.h: Add double-inclusion guards. + Reported by Stefan Berger. + 2010-10-15 Jim Meyering <meyering@redhat.com> GNUmakefile: handle "stable" target, not "major"
--- a/lib/ignore-value.h +++ b/lib/ignore-value.h @@ -32,6 +32,11 @@ "copy.c:233: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result". */ +#ifndef _GL_IGNORE_VALUE_H +# define _GL_IGNORE_VALUE_H + static inline void ignore_value (int i) { (void) i; } static inline void ignore_ptr (void* p) { (void) p; } /* FIXME: what about aggregate types? */ + +#endif