diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-11-27 14:09:48 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-11-27 14:09:48 +1100 |
commit | 2230176f5a678dc8612e1bc6830fc39fb719b79b (patch) | |
tree | 56f97e02ab7c0b24e5c064132ec71555dbcf6a23 /include/pel.h | |
parent | 437701274b0e2f816b6f63f4bb6b9525c5f561ee (diff) | |
download | skiboot-2230176f5a678dc8612e1bc6830fc39fb719b79b.zip skiboot-2230176f5a678dc8612e1bc6830fc39fb719b79b.tar.gz skiboot-2230176f5a678dc8612e1bc6830fc39fb719b79b.tar.bz2 |
Liberally sprinkle attribute((warn_unused_result)) around the place
None of these actually produce any warnings. My next patch will.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/pel.h')
-rw-r--r-- | include/pel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pel.h b/include/pel.h index 3acc3d1..1213c43 100644 --- a/include/pel.h +++ b/include/pel.h @@ -16,6 +16,7 @@ #ifndef __PEL_H #define __PEL_H +#include <compiler.h> #include <errorlog.h> /* Data Structures for PEL data. */ @@ -174,6 +175,6 @@ struct opal_user_section { size_t pel_size(struct errorlog *elog_data); int create_pel_log(struct errorlog *elog_data, char *pel_buffer, - size_t pel_buffer_size); + size_t pel_buffer_size) __warn_unused_result; #endif |