diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-11-26 18:27:10 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-11-26 18:27:10 +1100 |
commit | 437701274b0e2f816b6f63f4bb6b9525c5f561ee (patch) | |
tree | fca177432e28218a3f7127ad54bc849560855a02 /include/compiler.h | |
parent | cf8def92617e3cc554c261ff7c740ba7e76261af (diff) | |
download | talos-skiboot-437701274b0e2f816b6f63f4bb6b9525c5f561ee.tar.gz talos-skiboot-437701274b0e2f816b6f63f4bb6b9525c5f561ee.zip |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h index ab6e28ea..35bf1652 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) |