odd behavior

Jonathan Wakely jwakely.gcc@gmail.com
Fri Aug 29 09:12:00 GMT 2014


On 29 August 2014 06:37, Jędrzej Dudkiewicz wrote:
> I've seen it few times, but was always my fault and section was in
> fact compiled. Try preprocessing your input file using -E option and
> check if it really isn't used.

No, it definitely happens in code that isn't compiled, try it:

#if 0
const char* s = ";
#endif
int main() { }

x.c:2:17: warning: missing terminating " character [enabled by default]
 const char* s = ";
                 ^



More information about the Gcc-help mailing list