Hi all, Can someone tell me where to add compiler warning/error flags for Makefile users? (On Windows, I know)
Am going to slowly activate erroring on specific warnings.
Thanks, Johan
2014-03-16 19:24 GMT+01:00 Johan Engelen <jbc.engelen@...2592...>:
Hi all, Can someone tell me where to add compiler warning/error flags for Makefile users? (On Windows, I know)
Am going to slowly activate erroring on specific warnings.
configure.ac lines 92-101 have an example. You can either copy this or add more -Werror to this test.
Regards, Krzysztof
On 17-3-2014 6:21, Krzysztof Kosiński wrote:
2014-03-16 19:24 GMT+01:00 Johan Engelen <jbc.engelen@...2592...>:
Hi all, Can someone tell me where to add compiler warning/error flags for Makefile users? (On Windows, I know)
Am going to slowly activate erroring on specific warnings.
configure.ac lines 92-101 have an example. You can either copy this or add more -Werror to this test.
Thanks.
Wow... some of the tests in configure.ac are ridiculous: "# -Wno-pointer-sign is probably new in gcc 4.0; certainly it isn't accepted # by gcc 2.95."
2.95? Seriously?
I will just add -Werror=... thingies to the test you refered to. If the compiler doesn't take any of them, that is an error by itself. No need to add 10 (!!!!!) lines per warning flag.
cheers, Johan
On Mar 20, 2014, at 1:43 PM, Johan Engelen wrote:
On 17-3-2014 6:21, Krzysztof Kosiński wrote:
2014-03-16 19:24 GMT+01:00 Johan Engelen <jbc.engelen@...2592...>:
Hi all, Can someone tell me where to add compiler warning/error flags for Makefile users? (On Windows, I know)
Am going to slowly activate erroring on specific warnings.
configure.ac lines 92-101 have an example. You can either copy this or add more -Werror to this test.
Thanks.
Wow... some of the tests in configure.ac are ridiculous: "# -Wno-pointer-sign is probably new in gcc 4.0; certainly it isn't accepted # by gcc 2.95."
2.95? Seriously?
Yeah... it looks like we could update a bit of that.
BTW, for my local builds, I usually conclude my flags with
-Wall -Wextra
2014-03-20 21:43 GMT+01:00 Johan Engelen <jbc.engelen@...2592...>:
I will just add -Werror=... thingies to the test you refered to. If the compiler doesn't take any of them, that is an error by itself. No need to add 10 (!!!!!) lines per warning flag.
FWIW, testing whether the compiler accepts a flag in Waf is 1 line.
Regards, Krzysztof
participants (3)
-
Johan Engelen
-
Jon Cruz
-
Krzysztof Kosiński