]> granicus.if.org Git - esp-idf/commitdiff
mqtt: silence a format warning
authorAnton Maklakov <anton@espressif.com>
Tue, 18 Sep 2018 06:16:19 +0000 (14:16 +0800)
committerAnton Maklakov <anton@espressif.com>
Thu, 20 Sep 2018 10:53:15 +0000 (18:53 +0800)
components/mqtt/CMakeLists.txt
components/mqtt/component.mk

index 27cf1e285089c0055052efa1979bf2fbf45964ce..d100f80a0e8b2d3b0f1a37ec0cd54bec20dd14be 100644 (file)
@@ -9,3 +9,11 @@ set(COMPONENT_SRCS "esp-mqtt/mqtt_client.c"
 set(COMPONENT_REQUIRES lwip nghttp mbedtls tcp_transport)
 
 register_component()
+
+if(GCC_NOT_5_2_0)
+    # Temporary suppress "format-overflow" warning until we are fixed in esp-mqtt repo
+    set_source_files_properties(
+        esp-mqtt/lib/transport_ws.c
+        PROPERTIES COMPILE_FLAGS
+        -Wno-format-overflow)
+endif()
index 19e498025e86f7307acde3076c13ae6f6b179add..7c77159548c863aefaaad181d464c96180d79b09 100644 (file)
@@ -2,3 +2,7 @@ COMPONENT_SUBMODULES += esp-mqtt
 COMPONENT_ADD_INCLUDEDIRS := esp-mqtt/include
 COMPONENT_SRCDIRS :=  esp-mqtt esp-mqtt/lib
 COMPONENT_PRIV_INCLUDEDIRS := esp-mqtt/lib/include
+
+ifeq ($(GCC_NOT_5_2_0), 1)
+esp-mqtt/lib/transport_ws.o: CFLAGS += -Wno-format-overflow
+endif