Why not just add "-D__LINE__=LinkerError_LineMacroUsed_DoNotDoThat()" to CFLAGS?
---- Best Regards, Dmitry Grinberg On Mon, Dec 16, 2019 at 3:51 AM Eric Curtin <ericcurti...@gmail.com> wrote: > I want to add a compiler warning, if it will get accepted. It's a > -Wlines warning. My employer bans the __LINE__ macro as well as the > ones warned by the -Wdate-time warning, because there is a consensus > that the addition of whitespace or comments should not yield different > binary output for our project. Would this patch get accepted? >