Patchwork [go] : Change type of main in libgo/runtime/goc2c.c to int

login
register
mail settings
Submitter Uros Bizjak
Date Feb. 7, 2013, 10:15 p.m.
Message ID <CAFULd4aN+5wj4O3G5od6vu6btOEK0YtGhHd3_qL6JGD1kibw6w@mail.gmail.com>
Download mbox | patch
Permalink /patch/219008/
State New
Headers show

Comments

Uros Bizjak - Feb. 7, 2013, 10:15 p.m.
Hello!

Just a small patch to remove a compile warning.

Tested on x86_64-pc-linux-gnu.

Uros.

        char *goarch;
Ian Taylor - Feb. 7, 2013, 10:24 p.m.
On Thu, Feb 7, 2013 at 2:15 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
>
> Just a small patch to remove a compile warning.
>
> Tested on x86_64-pc-linux-gnu.

Committed.

Thanks.

Ian


> Index: runtime/goc2c.c
> ===================================================================
> --- runtime/goc2c.c     (revision 195856)
> +++ runtime/goc2c.c     (working copy)
> @@ -633,7 +633,7 @@
>         sysfatal("Usage: goc2c [--go-pkgpath PKGPATH] [--go-prefix
> PREFIX] [file]\n");
>  }
>
> -void
> +int
>  main(int argc, char **argv)
>  {
>         char *goarch;

Patch

Index: runtime/goc2c.c
===================================================================
--- runtime/goc2c.c     (revision 195856)
+++ runtime/goc2c.c     (working copy)
@@ -633,7 +633,7 @@ 
        sysfatal("Usage: goc2c [--go-pkgpath PKGPATH] [--go-prefix
PREFIX] [file]\n");
 }

-void
+int
 main(int argc, char **argv)
 {