[PATCH 5/5] add forward declaration to main() to prevent warnings
Jaap de Wolff
info@jasoon.nl
Mon Feb 12 11:23:00 GMT 2018
---
libgloss/arm/linux-crt0.c | 2 ++
1 file changed, 2 insertions(+)
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)
--
2.11.0
More information about the Newlib
mailing list