From 81b1700f642725e5fe300e9781cd7c52cff2b666 Mon Sep 17 00:00:00 2001 From: nvmd Date: Thu, 23 Jan 2025 20:42:10 -0300 Subject: [PATCH] Fixed warnings 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 59dda4f6e..8a143d933 100644 --- a/nimble/host/src/ble_hs_hci.c +++ b/nimble/host/src/ble_hs_hci.c @@ -106,7 +106,7 @@ struct err_code { int error_code; - char *msg; + const char *msg; }; static struct err_code err_code_list[] = {