How to change compilation flags for managed components.
Posted: Mon Jul 18, 2022 4:58 pm
I am trying to use latest espressif/esp-dsp with latest idf, but can't compile because of warning.
I tried but it does not seem to affect the dsp component.
I tried
Code: Select all
idf_build_set_property(COMPILE_OPTIONS "-Wno-error" APPEND)
- /project/managed_components/espressif__esp-dsp/modules/math/sqrt/float/dsps_sqrt_f32_ansi.c: In function 'dsps_sqrtf_f32_ansi':
- /project/managed_components/espressif__esp-dsp/modules/math/sqrt/float/dsps_sqrt_f32_ansi.c:24:12: error: 'result' is used uninitialized [-Werror=uninitialized]
- 24 | return *f_result;
- | ^~~~~~~~~
- /project/managed_components/espressif__esp-dsp/modules/math/sqrt/float/dsps_sqrt_f32_ansi.c:22:15: note: 'result' declared here
- 22 | const int result = 0x1fbb4000 + (*f_ptr >> 1);
- | ^~~~~~
- cc1: some warnings being treated as errors