projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3fb40c
)
New macro WARN_UNUSED_RESULT.
author
Ben Pfaff
<blp@gnu.org>
Mon, 8 May 2006 00:10:21 +0000
(
00:10
+0000)
committer
Ben Pfaff
<blp@gnu.org>
Mon, 8 May 2006 00:10:21 +0000
(
00:10
+0000)
src/libpspp/ChangeLog
patch
|
blob
|
history
src/libpspp/compiler.h
patch
|
blob
|
history
diff --git
a/src/libpspp/ChangeLog
b/src/libpspp/ChangeLog
index ca11f306b94614ba80b829ca9d035cec684a834a..31097a107da4eb8277a94be94437b8feb8ad6771 100644
(file)
--- a/
src/libpspp/ChangeLog
+++ b/
src/libpspp/ChangeLog
@@
-1,3
+1,7
@@
+Sun May 7 17:09:54 2006 Ben Pfaff <blp@gnu.org>
+
+ * compiler.h: (macro WARN_UNUSED_RESULT) New macro.
+
Sun May 7 14:32:25 2006 Ben Pfaff <blp@gnu.org>
* va_copy.h: New header.
diff --git
a/src/libpspp/compiler.h
b/src/libpspp/compiler.h
index 44f22b39682a5656488126d86eef2ee5dad081b6..8c2c3abd2ea6a808761eed046dce287f277ffaf9 100644
(file)
--- a/
src/libpspp/compiler.h
+++ b/
src/libpspp/compiler.h
@@
-44,4
+44,11
@@
#define MALLOC_LIKE
#endif
+/* This attribute was added in GCC 4.0. */
+#if __GNUC__ >= 4
+#define WARN_UNUSED_RESULT ATTRIBUTE ((warn_unused_result))
+#else
+#define WARN_UNUSED_RESULT
+#endif
+
#endif /* compiler.h */