Bluetooth: Fix compiler warning when VS HCI is unset Fixes: subsys/bluetooth/host/hci_core.c: In function ‘set_static_addr’: subsys/bluetooth/host/hci_core.c:4043:1: error: label ‘generate’ defined but not used [-Werror=unused-label] generate: ^~~~~~~~ Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index e02d5ff..2296ade 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c
@@ -4038,9 +4038,9 @@ } else { BT_WARN("Read Static Addresses command not available"); } -#endif generate: +#endif BT_DBG("Generating new static random address"); err = bt_addr_le_create_static(&bt_dev.id_addr);