From 8e720db65a174d2aa08fb510f84b86bda3674c83 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Tue, 14 Sep 2021 09:45:43 +0530 Subject: [PATCH] cbor: build system cleanup Some of the special CFLAGS required for masking warnings are no more required with updated tinycbor release. --- components/cbor/CMakeLists.txt | 6 ------ components/cbor/component.mk | 2 -- 2 files changed, 8 deletions(-) diff --git a/components/cbor/CMakeLists.txt b/components/cbor/CMakeLists.txt index cb31da5e5a..7f12fbe9c9 100644 --- a/components/cbor/CMakeLists.txt +++ b/components/cbor/CMakeLists.txt @@ -13,9 +13,3 @@ idf_component_register(SRCS "tinycbor/src/cborencoder_close_container_checked.c" # for open_memstream.c set_source_files_properties(tinycbor/src/open_memstream.c PROPERTIES COMPILE_DEFINITIONS "__linux__") - -# cbortojson.c:378:17: assignment discards 'const' qualifier from pointer target type -target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-discarded-qualifiers") - -# cborvalidation.c:429:22: 'valf' may be used uninitialized -target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-maybe-uninitialized") diff --git a/components/cbor/component.mk b/components/cbor/component.mk index 7f4f1b9632..211ec49ffd 100644 --- a/components/cbor/component.mk +++ b/components/cbor/component.mk @@ -4,5 +4,3 @@ COMPONENT_SRCDIRS := tinycbor/src COMPONENT_PRIV_INCLUDEDIRS := tinycbor/src tinycbor/src/open_memstream.o: CFLAGS += -D__linux__ -tinycbor/src/cbortojson.o: CFLAGS += -Wno-discarded-qualifiers -tinycbor/src/cborvalidation.o: CFLAGS += -Wno-maybe-uninitialized