mycoboco / beluga

a standard C compiler (with an integrated preprocessor)
http://code.woong.org/beluga
Other
65 stars 8 forks source link

support -Wendif-labels #128

Closed mycoboco closed 6 years ago

mycoboco commented 6 years ago

Do not warn whenever an #else or an #endif are followed by text. This sometimes happens in older programs with code of the form

#if FOO
...
#else FOO
...
#endif FOO

The second and third FOO should be in comments. This warning is on by default.

mycoboco commented 6 years ago

Decided to use -Wendif-labels for all extra tokens.