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

Remove uses of "pragma message" for unsuppressable warnings #1445

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

mspang
Copy link
Contributor

@mspang mspang commented Jul 6, 2020

Compiling this file generates unsuppressable output when certain lwIP
options are disabled. If these configurations are legal, then merely
compiling shouldn't print out an objection to them. If they are truly
not intended to be used, the lwIP configs for the examples should be
corrected.

Fixes #1444

Compiling IPEndPointBasis.cpp generates unsuppressable output when
certain lwIP options are disabled. If disabling these options is legal,
then merely compiling shouldn't print out an objection to them. I
disabling them is not legal, then the lwIP configs for the examples
should be corrected.

Fixes project-chip#1444
Copy link
Contributor

@gerickson gerickson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any suggested alternative outside of removing these?

@mspang
Copy link
Contributor Author

mspang commented Jul 6, 2020

Any suggested alternative outside of removing these?

The description suggests one: enable these in the examples (and probably turn it into an #warning in that case if we really don't intend to allow this combination).

If we intend to allow it and still want to give a hint we could handle it via documentation, or alternatively add another #define like CHIP_SUPPRESS_CONFIG_RECOMMENDATIONS so there's an opt out. Currently it is impossible to make the examples build clean of diagnostic messages and the goal is mainly to make it possible.

@mspang mspang requested a review from gerickson July 6, 2020 23:23
@woody-apple woody-apple merged commit 1a2aca6 into project-chip:master Jul 7, 2020
@mspang mspang deleted the for-nest/pragma branch August 14, 2020 20:17
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.

examples print unsuppressable #pragma messages during the build
5 participants