public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/50668] New: gcc gives warnings for code with #if 0 .... #endif code block
@ 2011-10-08 22:07 jg at jguk dot org
  2011-10-08 22:59 ` [Bug c/50668] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: jg at jguk dot org @ 2011-10-08 22:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50668

             Bug #: 50668
           Summary: gcc gives warnings for code with #if 0 .... #endif
                    code block
    Classification: Unclassified
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jg@jguk.org


A little surprised to see the following build warning for code withn #if 0 ....
#endif I had expected that to be excluded from the build.

main3.c:4:3: warning: missing terminating " character

gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2

gcc -Wall -o main main3.c

My sample program follows:


#if 0
p("
#endif

int main(void)
{
    return 0;
}


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/50668] gcc gives warnings for code with #if 0 .... #endif code block
  2011-10-08 22:07 [Bug c/50668] New: gcc gives warnings for code with #if 0 .... #endif code block jg at jguk dot org
@ 2011-10-08 22:59 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-10-08 22:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50668

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-10-08 22:58:18 UTC ---
This is correct since it has to be parsed for tokens inside the #if block.

*** This bug has been marked as a duplicate of bug 12075 ***


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-08 22:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-08 22:07 [Bug c/50668] New: gcc gives warnings for code with #if 0 .... #endif code block jg at jguk dot org
2011-10-08 22:59 ` [Bug c/50668] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).