diff --git a/mqtt_client.c b/mqtt_client.c index ec5a811..bcd1a74 100644 --- a/mqtt_client.c +++ b/mqtt_client.c @@ -945,8 +945,12 @@ esp_err_t esp_mqtt_client_set_uri(esp_mqtt_client_handle_t client, const char *u MQTT_API_LOCK(client); // set uri overrides actual scheme, host, path if configured previously // False-positive leak detection. TODO: GCC-366 -#pragma GCC diagnostic push +#pragma GCC diagnostic push // TODO: IDF-10105 +#if __clang__ +#pragma clang diagnostic ignored "-Wunknown-warning-option" +#else #pragma GCC diagnostic ignored "-Wpragmas" +#endif #pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak" free(client->config->scheme); free(client->config->host);