-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make: buildtest with "-Wall -Wextra -Werror" #1121
Conversation
+1 to have this PR merged until next release (make it a release goal) |
Please rebase |
Rebased. |
Please rebase. |
Rebased. |
1 similar comment
Rebased. |
I don't think we can achieve this for the upcoming release already. Postponed. |
9f184dd
to
45554bf
Compare
How's the status on this front? |
Master still has issues. |
Closed as memo for now. Reopen if you object. |
What's the reason for closing? |
I would like to see the CI build without warnings as a long term goal. |
(fails already for the new power management T.T) |
=> postponed I guess. |
And how would you do it? |
Same way we did cppcheck? |
So should we tackle this for 2017.07? |
How about |
... and in boards/ and cpu/ |
Conventional pre-release ping. ;-) |
I suggest to close as memo as it is not mergeable anymore and use #7919 as a replacement. |
Closed as memo because the original author is lazy. |
DO NOT MERGE UNTIL ALL WARNINGS ARE FIXED IN MASTER
With almost all warnings fixed or at least being addressed in an open PR, I think we should strive to keep it that way.
This PR makes
buildtest
more pedantic by supplying-Wall -Wexta -Werror
by default.This can be disabled through
make W_ALL=0 W_EXTRA=0 W_ERROR=0
, resp., or withmake W_NONE=1
, which disables every extra flag.With
make PEDANTIC=1 PEDANTIC_ERRORS=1
you can make the buildtest even more pedantic.Also the generic make variableW_FLAGS
is added, through which extraCFLAGS
can be supplied in the normalmake all
.For non-buildtest builds you can supply
W_NONE=0
and/or the individual flags,too