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

Thread based Applications fail to build with -Og and CHIP Logging disabled #13222

Closed
adabreuti opened this issue Dec 22, 2021 · 0 comments · Fixed by #13224
Closed

Thread based Applications fail to build with -Og and CHIP Logging disabled #13222

adabreuti opened this issue Dec 22, 2021 · 0 comments · Fixed by #13224

Comments

@adabreuti
Copy link
Contributor

Problem

With the debug build enabled along with CHIP Progress logging disabled, GenericThreadStackManagerImpl_OpenThread.cpp fails to compile due to unused variables (-Werror=unused-but-set-variable):

image

This condition can be reproduced by setting the following within args.gni for a certain application build.
is_debug = false
chip_progress_logging = false

Proposed Solution

GenericThreadStackManagerImpl_OpenThread.cpp should be using ifdefs for CHIP_PROGRESS_LOGGING in order to wrap the unused variables.

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 a pull request may close this issue.

1 participant