Forums » Development »
Pedantic on warnings
Added by Stefan Wallentowitz about 1 year ago
Hi,
in principal I understand, that warnings should always be treated as errors. Nevertheless I have so much legacy code, I need to review suggestions, but don't want to exit on warnings nevertheless. The attached patch adds a "--no-pedantic" switch, that allows the user to de-active to abort on warnings. The standard behavior is the old one, but using the switch one can de-activate this behavior. I hope you are interested in this.
Bye, Stefan
no_pedantic_switch.patch - Patch (4.3 kB)
Replies (1)
RE: Pedantic on warnings - Added by Wilson Snyder about 1 year ago
Thanks for the patch - while I philosophically don't like the idea of ignoring warnings, I understand it might be unavoidable. Minor changes: First, pedantic in the GCC sense means adherence to the language standard, so I made it -Wno-fatal. Also as written it wouldn't have exited in the right spot if there were errors (vs warnings). Finally I added a test. In git for 3.812.
(1-1/1)
![[logo]](/img/veripool_small.png)