pschatzmann / arduino-audiokit

Arduino ADF/Audiokit HAL (support for ESP32-A1S, AI-Thinker, LyraT for ES7148, ES7210, ES7243, ES8311, ES8347, ES8388, TAS5805M, AC101 audio chips)
GNU General Public License v3.0
157 stars 42 forks source link

Showing SineWaveGenerator.h:45:20: error: 'result' is used uninitialized in this function [-Werror=uninitialized] size_t result; #23

Closed rjrajbir closed 2 years ago

rjrajbir commented 2 years ago

result_eror

Showing type define error.

Please solve this issue.

BR Rajbir

pschatzmann commented 2 years ago

Hmm, I can't reproduce your issue: I tried both on a Rasperry PI and on OS/X! Are you sure that you have selected ESP32 Dev Module as board ? If you go to -> Tools -> Board -> Board Manager and Enter ESP32. What version are you using? If you use the actual version you should see esp32 by Espressif Systems version 2.0.3

Also make sure that the compiler warnings are set to default in the Arduino Preferences

In any case just assign 0 to the result and the error should go away: I just committed this correction to the codebase - though I am still wondering why on my systems this is not an issue...

rjrajbir commented 2 years ago

1653110543685 This the board I am using. esp32_board_version My latest board version is 1.0.6

ok, thank you for your quick response.

rjrajbir commented 2 years ago

Yes, you were right, my compiler warning was set to ALL, by setting it default it worked. Thank you so much

pschatzmann commented 2 years ago

Still strange: on my systems I don't get any error even if the compiler setting is set to ALL...