bluekitchen / btstack

Dual-mode Bluetooth stack, with small memory footprint.
http://bluekitchen-gmbh.com
Other
1.74k stars 618 forks source link

Compiler error: ESP-IDF 5.2 #556

Closed ricardoquesada closed 10 months ago

ricardoquesada commented 10 months ago
/Users/ricardoq/progs/bluepad32/src/components/btstack/es8388.c:315:5: error: conflicting types for 'es8388_set_dac_ouput' due to enum/integer mismatch; have 'int(int)' [-Werror=enum-int-mismatch]
  315 | int es8388_set_dac_ouput(int output)
      |     ^~~~~~~~~~~~~~~~~~~~
In file included from /Users/ricardoq/progs/bluepad32/src/components/btstack/es8388.c:4:
/Users/ricardoq/progs/bluepad32/src/components/btstack/es8388.h:262:5: note: previous declaration of 'es8388_set_dac_ouput' with type 'int(es_codec_dac_output_t)'
  262 | int es8388_set_dac_ouput(es_codec_dac_output_t output);
      |     ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
[1090/1204] Building C object esp-idf/btstack/CMakeFiles/__idf_btstack.dir/src/hci.c.obj
ninja: build stopped: subcommand failed.

Using latest develop btstack branch. Using ESP-IDF v5.2 branch.

Seems to be related to a new set of warnings/errors from GCC 13.

mringwal commented 10 months ago

Thanks for reporting. (Hopefully) fixed on develop. Please reopen if build still fails.

ricardoquesada commented 10 months ago

fixed. thanks for the quick fix