Skip to content
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

Force -Wall & -Werror, fix build warnings #82

Merged
merged 3 commits into from
May 31, 2021

Conversation

konradybcio
Copy link

No description provided.

@robertlipe
Copy link

+1 to -Werror.
The rest of this overlaps heavily with #33 which has been in code jail for over a month. I approve of merging them, but we need to work together and quit duplicating effort.

@konradybcio
Copy link
Author

So.. should we perhaps get #33 merged and then only merge my Werror/Wall enablement commit so that it builds properly?

@robertlipe
Copy link

robertlipe commented Dec 1, 2020 via email

@konradybcio
Copy link
Author

(bump)

@konradybcio
Copy link
Author

(bump?)

@gamelaster
Copy link
Member

Thank you very much for your pull request!
For receiving the free PineCone, please sign up at this link.
(If there will be any issues with signing up, please let me know here).

@gamelaster gamelaster merged commit 534ee8f into pine64:master May 31, 2021
tchebb added a commit to tchebb/bl_iot_sdk that referenced this pull request Mar 15, 2023
…CXX code."

In the Pine64 fork, we previously added -Wall and -Werror to the end of
CFLAGS and CXXFLAGS (pine64#82). Those flags are desirable,
but they're already present in both those variables from the earlier
expansion of COMMON_WARNING_FLAGS. As such, the only purpose the added
copies served was to re-enable any warnings that the intervening flags
disabled--for example, ones disabled by an individual project's local
flags.

With the new upstream merge, our added flags broke the build for some
such projects whose code triggers warnings. Although ideally we should
fix those projects, I don't think a blanket force-enablement like this
is the right way to do that: the flags are already enabled by default,
so there's likely a good reason for a project to explicitly opt out of
certain warnings. Instead of ignoring those opt-outs, we should just try
to fix them as time permits: they're easy to find by grepping for -Wno
in project Makefiles.

If we keep these flags, we force anyone who does an upstream merge to
synchronously fix a bunch of modules before they can push that merge. I
think that's an unreasonable thing to ask given the quantity of code in
this SDK.

This reverts commit f745f48.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants