Re:Useful GCC warning options not enabled by -Wall -Wextra
by bluetomcat on Wednesday October 04, 2017 @04:04PM
(#15404056)
The compiler passes of both GCC and Clang are aware of macro expansions since they are able to tell you about errors which occur after a macro expansion, i.e. the error messages similar to "... in expansion of macro X ...".
[ Parent
| on HN ]
Re:Useful GCC warning options not enabled by -Wall -Wextra
by throwaway613834 on Wednesday October 04, 2017 @06:34PM
(#15405333)
Yeah I'm aware. I'm more referring to the comments here, where people use "this is generated by a macro" as a justification even though that only makes sense if you think of preprocessed code as a separate stage from the actual code, which I'm arguing you shouldn't. That said though, I'm surprised they don't treat it that way for other cases like these?