public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] add forward declaration to main() to prevent warnings Date: Fri, 16 Feb 2018 12:46:00 -0000 [thread overview] Message-ID: <20180216124611.32095.qmail@sourceware.org> (raw) 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)
reply other threads:[~2018-02-16 12:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180216124611.32095.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).