malcolmwallace / cpphs

The C pre-processor, implemented in Haskell.
2 stars 0 forks source link

Warnings about trailing characters always emitted #23

Open tfausak opened 4 years ago

tfausak commented 4 years ago

Even if you pass --nowarn (aka SuppressWarnings) to disable the warnings option, warnings about trailing characters are emitted anyway. Specifically this warning:

Warning: trailing characters after #if macro expansion in file FILE: CHARS

The warnings come from Language.Preprocessor.Cpphs.CppIfdef.gatherDefined. The warnings flag should be respected, like it is for Language.Preprocessor.Cpphs.ReadFirst.readFirst.