Skip to content

Commit

Permalink
Merge branch 'fix/analyzer-unknown-pragma-warning' into 'master'
Browse files Browse the repository at this point in the history
fix: gcc analyzer unknown pragma warning

See merge request espressif/esp-mqtt!214
  • Loading branch information
euripedesrocha committed Jun 10, 2024
2 parents a0f4ce8 + b527203 commit e6c5596
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mqtt_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,7 @@ esp_err_t esp_mqtt_client_set_uri(esp_mqtt_client_handle_t client, const char *u
// set uri overrides actual scheme, host, path if configured previously
// False-positive leak detection. TODO: GCC-366
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak"
free(client->config->scheme);
free(client->config->host);
Expand Down

0 comments on commit e6c5596

Please sign in to comment.