Answers checklist.
IDF / ESP32-Arduino version.
v5.3
Operating System used.
macOS
How did you build your project?
Command line with idf.py
Development Kit.
ESP32 DEV
What is the expected behavior?
Build error on the MacOs
/Users/vietdzung/dev/projects/esp32/sdks/5.3.2/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_node_config.c: In function '__esp_rmaker_get_node_config':
/Users/vietdzung/dev/projects/esp32/sdks/5.3.2/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_node_config.c:271:12: error: void value not ignored as it ought to be
271 | return json_gen_str_end(&jstr);
| ^~~~~~~~~~~~~~~~~~~~~~~
/Users/vietdzung/dev/projects/esp32/sdks/5.3.2/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_node_config.c:272:1: error: control reaches end of non-void function [-Werror=return-type]
272 | }
| ^
2, I try to fix 1 error show this error
/Users/vietdzung/dev/projects/esp32/sdks/5.3.2/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_param.c: In function 'esp_rmaker_populate_params':
/Users/vietdzung/dev/projects/esp32/sdks/5.3.2/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_param.c:165:14: error: void value not ignored as it ought to be
165 | *buf_len = json_gen_str_end(&jstr);
| ^
On the previous version of Mac it working fine, code is latest from this repo
What is the actual behavior?
Build should work
Steps to reproduce.
Build sample homekit_switch
Build Logs.
1.
/Users/vietdzung/dev/projects/esp32/sdks/5.3.2/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_node_config.c: In function '__esp_rmaker_get_node_config':
/Users/vietdzung/dev/projects/esp32/sdks/5.3.2/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_node_config.c:271:12: error: void value not ignored as it ought to be
271 | return json_gen_str_end(&jstr);
| ^~~~~~~~~~~~~~~~~~~~~~~
/Users/vietdzung/dev/projects/esp32/sdks/5.3.2/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_node_config.c:272:1: error: control reaches end of non-void function [-Werror=return-type]
272 | }
| ^
2, I try to fix 1 error show this error
/Users/vietdzung/dev/projects/esp32/sdks/5.3.2/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_param.c: In function 'esp_rmaker_populate_params':
/Users/vietdzung/dev/projects/esp32/sdks/5.3.2/esp-rainmaker/components/esp_rainmaker/src/core/esp_rmaker_param.c:165:14: error: void value not ignored as it ought to be
165 | *buf_len = json_gen_str_end(&jstr);
| ^
More Information.
No response
Answers checklist.
IDF / ESP32-Arduino version.
v5.3
Operating System used.
macOS
How did you build your project?
Command line with idf.py
Development Kit.
ESP32 DEV
What is the expected behavior?
Build error on the MacOs
2, I try to fix 1 error show this error
On the previous version of Mac it working fine, code is latest from this repo
What is the actual behavior?
Build should work
Steps to reproduce.
Build sample homekit_switch
Build Logs.
More Information.
No response