From d5028612b9bf36993f870ed1c03a550ef9586e84 Mon Sep 17 00:00:00 2001 From: Andrey Tolstoy Date: Sat, 23 Oct 2021 05:56:53 +0700 Subject: [PATCH] minor --- build/gcc-tools.mk | 4 ++-- build/module-defaults.mk | 2 +- third_party/mbedtls/build.mk | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build/gcc-tools.mk b/build/gcc-tools.mk index 58369dda0d..74efb867c0 100644 --- a/build/gcc-tools.mk +++ b/build/gcc-tools.mk @@ -32,6 +32,6 @@ CPPFLAGS += -Wno-unused-private-field endif ifeq ($(BUILD_STANDALONE_LIB),y) -CFLAGS += -fPIC -fpic -rdynamic -LDFLAGS += -fPIC -fpic -rdynamic +CFLAGS += -fPIC -fpic -rdynamic -fno-plt +LDFLAGS += -fPIC -fpic -rdynamic -fno-plt endif diff --git a/build/module-defaults.mk b/build/module-defaults.mk index 7a5c450c67..855755c7aa 100644 --- a/build/module-defaults.mk +++ b/build/module-defaults.mk @@ -62,8 +62,8 @@ CFLAGS += -Wno-error=type-limits CFLAGS += -fno-strict-aliasing CFLAGS += -DSPARK=1 -DPARTICLE=1 CFLAGS += -Werror=return-type - CFLAGS += -Wundef +CFLAGS += -Wno-error=cast-function-type ifdef START_DFU_FLASHER_SERIAL_SPEED CFLAGS += -DSTART_DFU_FLASHER_SERIAL_SPEED=$(START_DFU_FLASHER_SERIAL_SPEED) diff --git a/third_party/mbedtls/build.mk b/third_party/mbedtls/build.mk index 0d475cb797..a2ff38ed8d 100644 --- a/third_party/mbedtls/build.mk +++ b/third_party/mbedtls/build.mk @@ -2,3 +2,4 @@ TARGET_MBEDTLS_SRC_PATH = $(MBEDTLS_MODULE_PATH)/mbedtls/library # C source files included in this build. CSRC += $(call target_files,$(TARGET_MBEDTLS_SRC_PATH)/,*.c) +CFLAGS += -Wno-error=array-parameter \ No newline at end of file