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

Ian Lance Taylor iant@google.com
Thu Feb 7 22:24:00 GMT 2013


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;



More information about the Gcc-patches mailing list