[Skiboot] [PATCH 4/6] Add prototype in asm-offsets to silence clang

Joel Stanley joel at jms.id.au
Tue Jul 21 13:23:13 AEST 2015


asm/asm-offsets.c:31:5: error: no previous prototype for function 'main'
      [-Werror,-Wmissing-prototypes]
      int main(void)

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 asm/asm-offsets.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/asm/asm-offsets.c b/asm/asm-offsets.c
index 6278c5c..060eb31 100644
--- a/asm/asm-offsets.c
+++ b/asm/asm-offsets.c
@@ -28,6 +28,8 @@
 #define OFFSET(sym, str, mem) \
 	DEFINE(sym, offsetof(struct str, mem))
 
+int main(void);
+
 int main(void)
 {
 	OFFSET(SPIRA_ACTUAL_SIZE, spira, reserved);
-- 
2.1.4



More information about the Skiboot mailing list