aboutsummaryrefslogtreecommitdiff
path: root/include/compiler.h
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-11-26 18:27:10 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-11-26 18:27:10 +1100
commit437701274b0e2f816b6f63f4bb6b9525c5f561ee (patch)
treefca177432e28218a3f7127ad54bc849560855a02 /include/compiler.h
parentcf8def92617e3cc554c261ff7c740ba7e76261af (diff)
downloadskiboot-437701274b0e2f816b6f63f4bb6b9525c5f561ee.zip
skiboot-437701274b0e2f816b6f63f4bb6b9525c5f561ee.tar.gz
skiboot-437701274b0e2f816b6f63f4bb6b9525c5f561ee.tar.bz2
Add attribute warn_unused_result to compiler.h and dt_expand_node
This would have thrown a compiler warning for cf8def9 rather than failing at runtime. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h
index ab6e28e..35bf165 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -30,6 +30,7 @@
#define __noreturn __attribute__((noreturn))
/* not __const as this has a different meaning (const) */
#define __attrconst __attribute__((const))
+#define __warn_unused_result __attribute__((warn_unused_result))
#if 0 /* Provided by gcc stddef.h */
#define offsetof(type,m) __builtin_offsetof(type,m)