From: Eric Blake Date: Fri, 15 Oct 2010 22:05:27 +0000 (-0600) Subject: ignore-value: make header idempotent X-Git-Tag: stable/20101024~16 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=766127223b14a41774e0b7a5cdf22bb3ddb54957;p=gnulib.git ignore-value: make header idempotent * lib/ignore-value.h: Add double-inclusion guards. Reported by Stefan Berger. Signed-off-by: Eric Blake (cherry picked from commit cac3889c1830d38e5b55ae69fc3d458498a0b33e) --- diff --git a/ChangeLog b/ChangeLog index b68d22aea..db1c21ff5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-10-15 Eric Blake + + ignore-value: make header idempotent + * lib/ignore-value.h: Add double-inclusion guards. + Reported by Stefan Berger. + 2010-10-15 Jim Meyering GNUmakefile: handle "stable" target, not "major" diff --git a/lib/ignore-value.h b/lib/ignore-value.h index 2eb6918db..b0088dd9b 100644 --- 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