From b5272039fe498dcf91ca47ff714e516ad6ed0720 Mon Sep 17 00:00:00 2001 From: Alexey Lapshin Date: Mon, 10 Jun 2024 19:34:48 +0700 Subject: [PATCH] fix: gcc analyzer unknown pragma warning --- mqtt_client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mqtt_client.c b/mqtt_client.c index 83f3421..ec5a811 100644 --- a/mqtt_client.c +++ b/mqtt_client.c @@ -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);