This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]forward declare main in linux-crt0.c


Just to resolve warnings

Jaap de Wolff
========================== 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]