From 13ff6176d4e8a07e0e906fcb50078795b65fe3bf Mon Sep 17 00:00:00 2001 From: nvmd Date: Thu, 23 Jan 2025 20:42:10 -0300 Subject: [PATCH] fix(nimble): Fixed compilation warning for CONFIG_COMPILER_WARN_WRITE_STRINGS If built with CONFIG_COMPILER_WARN_WRITE_STRINGS=y, the compiler emits warnings about the non-const pointer pointing to literal strings. This fixes it. --- nimble/host/src/ble_hs_hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/src/ble_hs_hci.c b/nimble/host/src/ble_hs_hci.c index 2d74e4b6e..e8ba0aa6d 100644 --- a/nimble/host/src/ble_hs_hci.c +++ b/nimble/host/src/ble_hs_hci.c @@ -108,7 +108,7 @@ struct err_code { int error_code; - char *msg; + const char *msg; }; static struct err_code core_err_code_list[] = {