I agree with you. It's very frustrating when I forget the semicolon and GCC says that. But I have an idea:
code: return "something" /* no semicolon */
GCC:
somefile.c:35: no semicolon at end of line
I think that would be a good idea. Maybe there could be an option -falternitive-semicolons that switches between your behavior, my behavior, and the default.
Samuel Lauber
----- Original Message -----
From: David Skinner <dskinner@nersc.gov>
To: gcc@gnu.org
Subject: feature request
Date: Mon, 15 Nov 2004 14:08:09 -0800
could this sort of output :
gcc -O2 -g -c -DLINUX_X86 -I../include -DIPM_SYSLOG_DIR="\"/doesnotexist\""
-DPENTIUM_M -I/usr/common/usg/papi/3.0b4//include -DHPM_PAPI
-DPENTIUM_M libipm.c
libipm.c: In function `ipm_report':
libipm.c:5650: syntax error before ';' token
make[1]: *** [libipm.a] Error 1
be augmented with a line or two given context of the error?
gcc -O2 -g -c -DLINUX_X86 -I../include -DIPM_SYSLOG_DIR="\"/doesnotexist\""
-DPENTIUM_M -I/usr/common/usg/papi/3.0b4//include -DHPM_PAPI
-DPENTIUM_M libipm.c
libipm.c: In function `ipm_report':
libipm.c:5650: syntax error before ';' token
libipm.c: /* print stuff */
libipm.c: printf("I forgot the semicolon\n")
libipm.c: printf("I remembered it this time :)\n");
make[1]: *** [libipm.a] Error 1