This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, go]: Change type of main in libgo/runtime/goc2c.c to int
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: gofrontend-dev at googlegroups dot com, Ian Lance Taylor <iant at google dot com>
- Date: Thu, 7 Feb 2013 23:15:29 +0100
- Subject: [PATCH, go]: Change type of main in libgo/runtime/goc2c.c to int
Hello!
Just a small patch to remove a compile warning.
Tested on x86_64-pc-linux-gnu.
Uros.
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;