BroadbandForum / obuspa

OB-USP-AGENT is a system daemon providing a User Services Platform (USP) Agent. https://github.com/BroadbandForum/obuspa/wiki
BSD 3-Clause "New" or "Revised" License
93 stars 62 forks source link

Fix compile error, if mqtt/stomp are both disabled: #43

Closed yclin1209 closed 2 years ago

yclin1209 commented 2 years ago

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]

./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

holme-r commented 2 years ago

Thank you. We will address this in the next commit.

holme-r commented 2 years ago

Closing as this issue has been addressed in the latest commit.