forward declare main in linux-crt0.c

Message ID 000601d3a180$e5370370$afa50a50$@jasoon.nl
State New
Headers show
Series
  • forward declare main in linux-crt0.c
Related show

Commit Message

Jaap de Wolff Feb. 9, 2018, 8:35 a.m.
Just to resolve warnings

Jaap de Wolff

Patch

========================== PATCH ==================
diff --git a/libgloss/arm/linux-crt0.c b/libgloss/arm/linux-crt0.c
index 878ece765..6b2d62a9b 100644
--- a/libgloss/arm/linux-crt0.c
+++ b/libgloss/arm/linux-crt0.c
@@ -10,6 +10,8 @@ 
 #include <unistd.h>
 #include "arm.h"
 
+/* forward declaration */
+int main(int argc, char *argv[], char *env[]);
 static int _main(int argc, char *argv[]) __attribute__((noreturn));
 
 #if __thumb__ && !defined(PREFER_THUMB)