-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Re-enable -Wsometimes-uninitialized
for clang
#83922
Merged
kartben
merged 2 commits into
zephyrproject-rtos:main
from
thughes:fix-sometimes-uninitialized
Mar 23, 2025
Merged
Re-enable -Wsometimes-uninitialized
for clang
#83922
kartben
merged 2 commits into
zephyrproject-rtos:main
from
thughes:fix-sometimes-uninitialized
Mar 23, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Wsometimes-uninitialized
for clang
c1b26fa
to
14bea22
Compare
Thalley
requested changes
Jan 23, 2025
14bea22
to
e70b196
Compare
Thalley
previously approved these changes
Jan 24, 2025
jhedberg
previously approved these changes
Jan 24, 2025
nordicjm
previously approved these changes
Jan 28, 2025
@stephanosio Looks like I need your approval. Thanks! |
@tejlmand I'm not sure about the exact process, but it looks like you'd be considered a MAINTAINER for this change. Is it possible to make yourself the assignee or do I need to wait for @stephanosio? |
e70b196
to
418188a
Compare
tejlmand
previously approved these changes
Feb 6, 2025
034413b
to
d5ab040
Compare
b402ed6
to
9e53498
Compare
9e53498
to
9c1362a
Compare
9c1362a
to
ca39e61
Compare
tejlmand
approved these changes
Mar 14, 2025
ca39e61
to
00b1a60
Compare
Building libraries.cmsis_dsp.distance with clang warns: tests/lib/cmsis_dsp/distance/src/f32.c:99:3: error: variable 'val' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized] default: ^~~~~~~ tests/lib/cmsis_dsp/distance/src/f32.c:104:19: note: uninitialized use occurs here output[index] = val; ^~~ tests/lib/cmsis_dsp/distance/src/f32.c:57:16: note: initialize the variable 'val' to silence this warning float32_t val; ^ = 0.0 Not really necessary since there is a zassert_unreachable, but doesn't hurt to initialize the variable. Signed-off-by: Tom Hughes <tomhughes@chromium.org>
a3801ef
to
7b498d0
Compare
All warnings in the code base have been resolved. Signed-off-by: Tom Hughes <tomhughes@chromium.org>
7b498d0
to
17760aa
Compare
kartben
approved these changes
Mar 23, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Bluetooth Audio
area: Bluetooth ISO
Bluetooth LE Isochronous Channels
area: Bluetooth
area: Build System
area: CMSIS-DSP
area: Toolchains
Toolchains
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All warnings in the code base have been resolved.