ignore-value: make header idempotent
authorEric Blake <eblake@redhat.com>
Fri, 15 Oct 2010 22:05:27 +0000 (16:05 -0600)
committerIan Beckwith <ianb@erislabs.net>
Sat, 23 Oct 2010 22:05:51 +0000 (23:05 +0100)
* lib/ignore-value.h: Add double-inclusion guards.
Reported by Stefan Berger.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit cac3889c1830d38e5b55ae69fc3d458498a0b33e)

ChangeLog
lib/ignore-value.h

index b68d22a..db1c21f 100644 (file)
--- 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"
index 2eb6918..b0088dd 100644 (file)
    "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