[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] ignore-value: make header idempotent
From: |
Eric Blake |
Subject: |
[PATCH] ignore-value: make header idempotent |
Date: |
Fri, 15 Oct 2010 16:08:52 -0600 |
* lib/ignore-value.h: Add double-inclusion guards.
Reported by Stefan Berger.
Signed-off-by: Eric Blake <address@hidden>
---
Now pushed to gnulib.
ChangeLog | 6 ++++++
lib/ignore-value.h | 5 +++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 40ca406..3b92831 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-10-15 Eric Blake <address@hidden>
+
+ ignore-value: make header idempotent
+ * lib/ignore-value.h: Add double-inclusion guards.
+ Reported by Stefan Berger.
+
2010-10-15 Jim Meyering <address@hidden>
GNUmakefile: handle "stable" target, not "major"
diff --git a/lib/ignore-value.h b/lib/ignore-value.h
index 2eb6918..b0088dd 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
--
1.7.2.3