diff mbox

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

Message ID 1437448995-7936-5-git-send-email-joel@jms.id.au
State Accepted
Headers show

Commit Message

Joel Stanley July 21, 2015, 3:23 a.m. UTC
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@jms.id.au>
---
 asm/asm-offsets.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Stewart Smith Aug. 13, 2015, 6:51 a.m. UTC | #1
Joel Stanley <joel@jms.id.au> writes:

> 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@jms.id.au>

Merged as b4769a78327e3216c741b1edd556e1e9265f1109, thanks!
diff mbox

Patch

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);