This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH]forward declare main in linux-crt0.c
- From: "Jaap de Wolff" <info at jasoon dot nl>
- To: <newlib at sourceware dot org>
- Date: Fri, 9 Feb 2018 09:35:08 +0100
- Subject: [PATCH]forward declare main in linux-crt0.c
- Authentication-results: sourceware.org; auth=none
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)