summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-06-27 20:30:47 +0700
committerhathach <[email protected]>2022-06-27 20:30:47 +0700
commit9c56f7011171ff649a821fe87a3ee477299fa860 (patch)
treed0fdbecaae4bafddba344b24d2fec8da18f5f9b7 /examples
parentdd7a17c34511e79bc259634f4fa157e7ddf98fd1 (diff)
suppress error with net example
Diffstat (limited to 'examples')
-rw-r--r--examples/device/net_lwip_webserver/CMakeLists.txt2
-rw-r--r--examples/make.mk3
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/device/net_lwip_webserver/CMakeLists.txt b/examples/device/net_lwip_webserver/CMakeLists.txt
index beaa9ad99..0f41b888a 100644
--- a/examples/device/net_lwip_webserver/CMakeLists.txt
+++ b/examples/device/net_lwip_webserver/CMakeLists.txt
@@ -76,6 +76,8 @@ if (EXISTS ${TOP}/lib/lwip/src)
target_compile_options(${PROJECT} PUBLIC
-Wno-error=null-dereference
-Wno-error=conversion
+ -Wno-error=sign-conversion
+ -Wno-error=sign-compare
)
# Configure compilation flags and libraries for the example... see the corresponding function
diff --git a/examples/make.mk b/examples/make.mk
index fa909ddca..27e1db38c 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -113,7 +113,8 @@ CFLAGS += \
-Wunused \
-Wredundant-decls
-# -Wconversion \
+# conversion is too strict for most mcu driver, may be disable sign/int/arith-conversion
+# -Wconversion
# Debugging/Optimization
ifeq ($(DEBUG), 1)