Skip to content

adc: Fix C++ initialization for channel cfg #93696

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

Merged
merged 1 commit into from
Jul 27, 2025

Conversation

yperess
Copy link
Contributor

@yperess yperess commented Jul 25, 2025

When compiling with -Werror=missing-field-initializers and the differential is disabled, we get a compilation error for the ADC drivers. We should still initialize the value to false.

When compiling with -Werror=missing-field-initializers and the
differential is disabled, we get a compilation error for the ADC
drivers. We should still initialize the value to false.

Signed-off-by: Yuval Peress <yuval.peress@gmail.com>
@zephyrbot zephyrbot added the area: ADC Analog-to-Digital Converter (ADC) label Jul 25, 2025
@zephyrbot zephyrbot requested a review from anangl July 25, 2025 05:10
@yperess yperess added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Jul 25, 2025
Copy link

@cfriedt cfriedt merged commit ed8f537 into zephyrproject-rtos:main Jul 27, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ADC Analog-to-Digital Converter (ADC) Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants