This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]