zephyr/subsys
Alberto Escolar Piedras 59b62243fa Bluetooth: HFP_AG: Initialize variable to avoid warning
gcc 11.4.0, seems to believe this variable may be used uninitialized,
and warns about it (causing a test build failure due to warnings
being treated as errors).
Let's just initialize the variable to 0 to avoid the issue, as the
cost is trivial.

subsys/bluetooth/host/classic/hfp_ag.c: In function
  ‘bt_hfp_ag_vts_handler’:
1095
subsys/bluetooth/host/classic/hfp_ag.c:3091:17: error: ‘code’ may be
  used uninitialized in this function [-Werror=maybe-uninitialized]
1096
 3091 |                 bt_ag->transmit_dtmf_code(ag, code);
1097
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1098

The issue can be reproduced for ex. with:
$ mkdir build ; cd build
$ cmake -GNinja -DBOARD=native_sim/native/64 ../tests/bluetooth/shell \
 -DCONF_FILE="prj_br.conf"
$ ninja

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-04-04 18:18:16 +02:00
..
bindesc
bluetooth Bluetooth: HFP_AG: Initialize variable to avoid warning 2025-04-04 18:18:16 +02:00
canbus
console
dap dap: add DAP backend USB 2025-03-11 18:54:24 +01:00
debug debug: thread_analyzer: move thread analyzer to own folder 2025-04-04 07:42:20 +02:00
demand_paging
dfu
disk
dsp
emul
fb cfb: typo fixes 2025-04-02 10:30:50 +02:00
fs fs: update module logging registration 2025-03-27 03:50:22 +01:00
input
ipc ipc_service: ipc_icbmsg: Update backend API return values 2025-03-28 12:21:30 +01:00
jwt
llext llext: optimize allocations for read-only sections 2025-03-21 14:41:30 -04:00
logging logging: frontends: stmesp: Fix sending string location 2025-04-01 16:26:50 +02:00
lorawan lorawan: add callback for descriptor changes 2025-03-07 19:42:56 +01:00
mctp
mem_mgmt
mgmt arch: arm: Add Cortex-A7 support 2025-04-04 09:35:03 +02:00
modbus
modem modem: cmux: Do not return error on low buffer space 2025-03-24 19:33:07 +01:00
net net: coap_client: Fix CoAP client thread priority 2025-04-04 18:17:30 +02:00
pm
portability portability: cmsis: Clarify Kconfig set max limit on dynamic objects 2025-03-17 02:21:15 +01:00
profiling
random random: Correct Mutex define 2025-03-04 21:55:45 +01:00
retention
rtio rtio: Transactions assume valid next list nodes 2025-03-14 01:02:10 +01:00
sd sd: correct mismatched comment for CONFIG_SDMMC_STACK 2025-03-31 21:59:40 +02:00
secure_storage modules: mbedtls: add promptless CONFIG_MBEDTLS_PSA_CRYPTO_STORAGE_C 2025-03-14 14:51:58 +01:00
sensing
settings settings: fix settings shell subcommand helper 2025-03-29 06:31:39 +01:00
shell shell: kernel: Add a panic command 2025-03-29 07:44:11 -04:00
sip_svc
stats
storage
task_wdt task_wdt: Add suspend and resume API functions 2025-04-02 13:05:14 +02:00
testsuite driver: interrupt_controller: intc_clic: rework to standard CLIC driver 2025-04-04 14:55:50 +02:00
timing
tracing kernel: kheap: decouple simple alloc from aligned_alloc 2025-04-01 22:13:04 +02:00
usb usb: device_next: avoid false error logging in CDC ACM 2025-04-02 10:32:25 +02:00
zbus
CMakeLists.txt
Kconfig