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

[TW#20346] rtc_module.c compile error #1841

Closed
fxzengfrank opened this issue Apr 9, 2018 · 3 comments
Closed

[TW#20346] rtc_module.c compile error #1841

fxzengfrank opened this issue Apr 9, 2018 · 3 comments

Comments

@fxzengfrank
Copy link

while make all

CC build/driver/rtc_module.o
/esp-idf/components/driver/./rtc_module.c: In function 'adc_convert':
/esp-idf/components/driver/./rtc_module.c:1245:12: error: 'adc_value' may be used uninitialized in this function [-Werror=maybe-uninitialized]
return adc_value;
^
cc1: some warnings being treated as errors
make[1]: *** [rtc_module.o] Error 1
make: *** [component-driver-build] Error 2

@moraleja39
Copy link

Until it gets fixed, you can compile by setting "Assertion level" to anything but "Disabled" under "Compiler options".
IE. the -DNDEBUG seems to be the cause to the compilation error.

@FayeY FayeY changed the title rtc_module.c compile error [TW#20346] rtc_module.c compile error Apr 16, 2018
@panfeng-espressif
Copy link
Contributor

Hello fxzengfrank,
Would you mind sharing your commit id of ESP-IDF?
Is it a demo code or your own project?
Thanks

@mahavirj
Copy link
Member

@fxzengfrank Thanks for reporting this. Fix for this is in progress, should be merged soon.

@igrr igrr closed this as completed in 959c677 Apr 19, 2018
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

No branches or pull requests

4 participants