zephyr/subsys/bluetooth
Tom Hughes 8218bf6b0a Bluetooth: TBS: Fix -Wsometimes-uninitialized warning
Building bluetooth.shell.audio.only_gtbs with clang warns:

subsys/bluetooth/audio/tbs.c:1646:6: error: variable 'ret' is used
uninitialized whenever 'if' condition is false
[-Werror,-Wsometimes-uninitialized]
        if (param->gtbs) {
            ^~~~~~~~~~~
subsys/bluetooth/audio/tbs.c:1667:9: note: uninitialized use occurs here
        return ret;
               ^~~
subsys/bluetooth/audio/tbs.c:1646:2: note: remove the 'if' if its
condition is always true
        if (param->gtbs) {
        ^~~~~~~~~~~~~~~~~
subsys/bluetooth/audio/tbs.c:1626:9: note: initialize the variable 'ret'
to silence this warning
        int ret;
               ^
                = 0

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-02-11 03:07:39 +01:00
..
audio Bluetooth: TBS: Fix -Wsometimes-uninitialized warning 2025-02-11 03:07:39 +01:00
common bluetooth: shell: move bt_shell_private.c to common folder 2025-01-14 10:56:16 +01:00
controller Bluetooth: Controller: Fix casting in radio_aa_set for BASE0 2025-02-11 03:07:27 +01:00
crypto Bluetooth: crypto: add select PSA_WANT_ALG_ECB_NO_PADDING 2025-01-15 22:57:20 +01:00
host Bluetooth: ATT: Disconnect ATT and ACL when receiving inval rsp 2025-02-10 15:56:34 +00:00
lib
mesh bluetooth: mesh: delayable_msg: cast to avoid truncation issue 2025-02-10 22:26:31 +01:00
services Bluetooth: CTS: Incorrect assert in bt_cts_init() 2025-01-29 12:51:30 +01:00
CMakeLists.txt Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR 2024-12-03 10:16:44 +01:00
Kconfig Bluetooth: ISO: Move contents of Kconfig.iso to common Kconfig 2025-01-15 01:39:35 +01:00
Kconfig.adv Bluetooth: Host: Add support for Advertising Coding Selection 2025-02-08 10:09:41 +01:00
Kconfig.logging Bluetooth: AVRCP: Implemation of AVRCP. 2024-11-18 13:19:07 -05:00