diff --git a/CMakeLists.txt b/CMakeLists.txt index cb48063..a33ac7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,3 +71,4 @@ idf_component_register(SRCS "${srcs}" PRIV_INCLUDE_DIRS "${priv_include_dirs}" REQUIRES ${requires} PRIV_REQUIRES esp_netif) +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/idf_component.yml b/idf_component.yml index ff7a8ad..17cb24d 100644 --- a/idf_component.yml +++ b/idf_component.yml @@ -1,4 +1,4 @@ -version: "1.0.3" +version: "1.0.4" description: ESP-MODBUS is the official Modbus library for Espressif SoCs. url: https://github.com/espressif/esp-modbus dependencies: diff --git a/test/mb_example_common/CMakeLists.txt b/test/mb_example_common/CMakeLists.txt index c4854e9..828fc58 100644 --- a/test/mb_example_common/CMakeLists.txt +++ b/test/mb_example_common/CMakeLists.txt @@ -3,3 +3,4 @@ cmake_minimum_required(VERSION 3.5) idf_component_register(SRCS "modbus_params.c" INCLUDE_DIRS "include") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/test/serial/mb_serial_master/main/CMakeLists.txt b/test/serial/mb_serial_master/main/CMakeLists.txt index f9ab7f6..5d314a3 100644 --- a/test/serial/mb_serial_master/main/CMakeLists.txt +++ b/test/serial/mb_serial_master/main/CMakeLists.txt @@ -2,3 +2,4 @@ set(PROJECT_NAME "modbus_master") idf_component_register(SRCS "master.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/test/serial/mb_serial_slave/main/CMakeLists.txt b/test/serial/mb_serial_slave/main/CMakeLists.txt index 561fa6c..da27238 100644 --- a/test/serial/mb_serial_slave/main/CMakeLists.txt +++ b/test/serial/mb_serial_slave/main/CMakeLists.txt @@ -2,3 +2,4 @@ set(PROJECT_NAME "modbus_slave") idf_component_register(SRCS "slave.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/test/tcp/mb_tcp_master/main/CMakeLists.txt b/test/tcp/mb_tcp_master/main/CMakeLists.txt index 842f186..203b5cf 100644 --- a/test/tcp/mb_tcp_master/main/CMakeLists.txt +++ b/test/tcp/mb_tcp_master/main/CMakeLists.txt @@ -2,3 +2,4 @@ set(PROJECT_NAME "modbus_tcp_master") idf_component_register(SRCS "tcp_master.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")