This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 5/5] add forward declaration to main() to prevent warnings
- From: Jaap de Wolff <info at jasoon dot nl>
- To: newlib at sourceware dot org
- Cc: Jaap de Wolff <info at jasoon dot nl>
- Date: Mon, 12 Feb 2018 12:23:45 +0100
- Subject: [PATCH 5/5] add forward declaration to main() to prevent warnings
- Authentication-results: sourceware.org; auth=none
- References: <20180212112345.17392-1-info@jasoon.nl>
---
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