[5/5] add forward declaration to main() to prevent warnings

Message ID 20180212112345.17392-5-info@jasoon.nl
State Accepted
Commit bc9b30ea77c73840265d2dd69650d472b786feac
Headers show
Series
  • [1/5] Add define _COMPILING_NEWLIB for arm to configure.host, as it is obviously needed
Related show

Commit Message

Jaap de Wolff Feb. 12, 2018, 11:23 a.m.
---
 libgloss/arm/linux-crt0.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.11.0

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)