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

Add -Wformat-type-confusion to catch a wider range of format string errors #7993

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

This is supported by clang, not gcc, hence adding this only to the
clang cflags in the strict warnings config.

lwip triggers this warning a lot, so we disable it there.

Fixes #7935

Problem

#7935 (but more broadly, some compiler configurations fail warnings that we don't have enabled by default in the tree).

Change overview

Enable stricter warnings.

Testing

Made sure all our CI compiles work.

…rrors.

This is supported by clang, not gcc, hence adding this only to the
clang cflags in the strict warnings config.

lwip triggers this warning a lot, so we disable it there.

Fixes project-chip#7935
@woody-apple woody-apple merged commit 33fa170 into project-chip:master Jun 29, 2021
@bzbarsky-apple bzbarsky-apple deleted the better-format-warnings branch June 29, 2021 18:17
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
…rrors. (project-chip#7993)

This is supported by clang, not gcc, hence adding this only to the
clang cflags in the strict warnings config.

lwip triggers this warning a lot, so we disable it there.

Fixes project-chip#7935
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maybe add -Wformat-type-confusion to the build as much as we can
4 participants