This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53004] Segmentation fault can be overcome with dummy predefined declaration
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Apr 2012 10:48:28 +0000
- Subject: [Bug c/53004] Segmentation fault can be overcome with dummy predefined declaration
- Auto-submitted: auto-generated
- References: <bug-53004-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53004
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #4 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-04-16 10:48:28 UTC ---
And GCC tells you so:
manuel@gcc12:~$ ~/trunk/186353M/build/gcc/cc1 -Wall tmp.c
tmp.c:3:6: warning: return type of âmainâ is not âintâ [-Wmain]
void main()
^
tmp.c: In function âmainâ:
tmp.c:8:8: warning: âprod_vgâ is used uninitialized in this function
[-Wuninitialized]
multg(prod_vg);
^
Now that -Wuninitialized is separated from -Wmaybe-uninitialized, maybe it is
time to enable it by default.