This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: odd behavior
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: JÄdrzej Dudkiewicz <jedrzej dot dudkiewicz at gmail dot com>
- Cc: Michael Williamson <michael dot h dot williamson at gmail dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 29 Aug 2014 10:11:59 +0100
- Subject: Re: odd behavior
- Authentication-results: sourceware.org; auth=none
- References: <CAKZygbd3AV0D9p+Btp_M52WG0GqOFPBdX=j496JiDjU+XZgy5Q at mail dot gmail dot com> <CABJqhQNJ9ditprsb4cAdPfADOxwwhg2XCw3oeHvD1B=BNjDS7A at mail dot gmail dot com>
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 = ";
^