Page 1 of 1

How to change compilation flags for managed components.

Posted: Mon Jul 18, 2022 4:58 pm
by user91829
I am trying to use latest espressif/esp-dsp with latest idf, but can't compile because of warning.

I tried

Code: Select all

idf_build_set_property(COMPILE_OPTIONS "-Wno-error" APPEND)
but it does not seem to affect the dsp component.

Code: Untitled.txt Select all


/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

Re: How to change compilation flags for managed components.

Posted: Wed Dec 28, 2022 10:06 pm
by asd123zxc
I have the same issue