How to change compilation flags for managed components.

user91829
Posts: 11
Joined: Thu Mar 03, 2022 11:20 am

How to change compilation flags for managed components.

Postby user91829 » 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

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

asd123zxc
Posts: 2
Joined: Wed Dec 28, 2022 10:01 pm

Re: How to change compilation flags for managed components.

Postby asd123zxc » Wed Dec 28, 2022 10:06 pm

I have the same issue

Who is online

Users browsing this forum: Applebot, Qwantbot and 11 guests