Skip to content

Commit b527203

Browse files
committed
fix: gcc analyzer unknown pragma warning
1 parent a0f4ce8 commit b527203

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mqtt_client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ esp_err_t esp_mqtt_client_set_uri(esp_mqtt_client_handle_t client, const char *u
946946
// set uri overrides actual scheme, host, path if configured previously
947947
// False-positive leak detection. TODO: GCC-366
948948
#pragma GCC diagnostic push
949+
#pragma GCC diagnostic ignored "-Wpragmas"
949950
#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak"
950951
free(client->config->scheme);
951952
free(client->config->host);

0 commit comments

Comments
 (0)