public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] add forward declaration to main() to prevent warnings
@ 2018-02-16 12:46 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2018-02-16 12:46 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=bc9b30ea77c73840265d2dd69650d472b786feac
commit bc9b30ea77c73840265d2dd69650d472b786feac
Author: Jaap de Wolff <info@jasoon.nl>
Date: Mon Feb 12 12:23:45 2018 +0100
add forward declaration to main() to prevent warnings
Diff:
---
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 878ece7..6b2d62a 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-16 12:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 12:46 [newlib-cygwin] add forward declaration to main() to prevent warnings Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).