There seems to be a compile error on Ubuntu 21.04(gcc 9.4.0), if mqtt/stomp are both disabled.
Adding conditional definitions to the code seems to fix it.
Thank you for your time.
[Instructions]
./configure --disable-coap --disable-mqtt --disable-stomp
make
[Error Messages]
src/core/device_controller.c: In function ‘SwitchMtpDestIfNotConnected’:
src/core/device_controller.c:866:11: error: unused variable ‘status’ [-Werror=unused-variable]
866 | char *status;
| ^~
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
Hi,
There seems to be a compile error on Ubuntu 21.04(gcc 9.4.0), if mqtt/stomp are both disabled. Adding conditional definitions to the code seems to fix it.
Thank you for your time.
[Instructions]
[Error Messages] src/core/device_controller.c: In function ‘SwitchMtpDestIfNotConnected’: src/core/device_controller.c:866:11: error: unused variable ‘status’ [-Werror=unused-variable] 866 | char *status; | ^
~compilation terminated due to -Wfatal-errors. cc1: all warnings being treated as errors