# HG changeset patch # User Eric Blake # Date 1287180327 21600 # Node ID 58a74b3c55fecb76da8cdccaf01d1afda20fc5d3 # Parent 62af42b5aad94ff577ca92223cda7f4006aafba9 ignore-value: make header idempotent * lib/ignore-value.h: Add double-inclusion guards. Reported by Stefan Berger. Signed-off-by: Eric Blake diff --git a/ChangeLog b/ChangeLog --- 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 --- 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