[antlr-interest] [bug] C Runtime #pragma error in antlr3cyclicdfa.h

David Benn david.benn at astc-design.com
Sun Aug 10 21:27:44 PDT 2008


A colleague discovered that the pop #pragma in antlr3cyclicdfa.h should 
be wrapped in an ANTLR3_WINDOWS #ifdef. Here are the details:

line 63 of antlr3cyclicdfa.h:

#pragma warning (pop)

needs to be replaced with:

#ifdef ANTLR3_WINDOWS
#pragma warning (pop)
#endif

This will ensure no compile warnings/errors with an unmatched warning 
pragma.

Regards,

David

-- 
David Benn
Australian Semiconductor Technology Company (ASTC) Pty Ltd
76 Waymouth Street
Adelaide 5000, South Australia
ABN:   18 117 392 784
Tel:   +61 8 8231 2782
Mob:   +61 407 261163
Email: david.benn at astc-design.com
Web:   www.astc-design.com



More information about the antlr-interest mailing list