Message ID | 20210304124851.219154-3-hadess@hadess.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/3] build: Add warnings for non-literal strings | expand |
diff --git a/tools/mesh-cfgclient.c b/tools/mesh-cfgclient.c index 1eeed2a1a..ab5026e9b 100644 --- a/tools/mesh-cfgclient.c +++ b/tools/mesh-cfgclient.c @@ -530,8 +530,11 @@ static struct l_dbus_message *disp_numeric_call(struct l_dbus *dbus, if (action_index < 0) return l_dbus_message_new_error(msg, dbus_err_support, NULL); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-nonliteral" str = l_strdup_printf(display_numeric_table[action_index].description, n); +#pragma GCC diagnostic pop bt_shell_printf(COLOR_YELLOW "%s\n" COLOR_OFF, str); l_free(str);