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.

  1. /project/managed_components/espressif__esp-dsp/modules/math/sqrt/float/dsps_sqrt_f32_ansi.c: In function 'dsps_sqrtf_f32_ansi':
  2.  
  3. /project/managed_components/espressif__esp-dsp/modules/math/sqrt/float/dsps_sqrt_f32_ansi.c:24:12: error: 'result' is used uninitialized [-Werror=uninitialized]
  4.  
  5.    24 |     return *f_result;
  6.  
  7.       |            ^~~~~~~~~
  8.  
  9. /project/managed_components/espressif__esp-dsp/modules/math/sqrt/float/dsps_sqrt_f32_ansi.c:22:15: note: 'result' declared here
  10.  
  11.    22 |     const int result = 0x1fbb4000 + (*f_ptr >> 1);
  12.  
  13.       |               ^~~~~~
  14.  
  15. 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: Bing [Bot] and 319 guests