From 51240c658fdb44a788d60ffbde48e7e8f646c27a Mon Sep 17 00:00:00 2001 From: yanghuatao Date: Mon, 15 May 2023 11:18:53 +0800 Subject: [PATCH] fix warning: [-Wunknown-pragmas] /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/hidl/HidlSupport.h:33: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] 33 | #pragma clang diagnostic push | /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/hidl/HidlSupport.h:34: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] 34 | #pragma clang diagnostic ignored "-Wpadded" | In file included from /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/android/hidl/base/1.0/types.h:4, from /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/android/hidl/base/1.0/IBase.h:4, from android/hidl/base/1.0/BaseAll.cpp:1: /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/hidl/HidlSupport.h:40: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] 40 | #pragma clang diagnostic pop | In file included from /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/android/hidl/base/1.0/IBase.h:4, from android/hidl/base/1.0/BaseAll.cpp:1: /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/android/hidl/base/1.0/types.h:188: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] 188 | #pragma clang diagnostic push | /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/android/hidl/base/1.0/types.h:189: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] 189 | #pragma clang diagnostic ignored "-Wc++17-extensions" | /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/android/hidl/base/1.0/types.h:195: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] 195 | #pragma clang diagnostic pop | CXX: LightRefBase.cpp In file included from base/HidlSupport.cpp:18: /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/hidl/HidlSupport.h:33: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] 33 | #pragma clang diagnostic push | /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/hidl/HidlSupport.h:34: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] 34 | #pragma clang diagnostic ignored "-Wpadded" | In file included from base/HidlSupport.cpp:18: /mnt/yang/vela_keystore_waring/apps/external/android/system/libhidl/base/include/hidl/HidlSupport.h:40: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas] 40 | #pragma clang diagnostic pop Signed-off-by: yanghuatao --- arch/arm/src/common/Toolchain.defs | 4 ++-- arch/arm64/src/Toolchain.defs | 4 ++-- arch/avr/src/avr/Toolchain.defs | 4 ++-- arch/avr/src/avr32/Toolchain.defs | 4 ++-- arch/ceva/src/xc5/Toolchain.defs | 4 ++-- arch/ceva/src/xm6/Toolchain.defs | 4 ++-- arch/mips/src/mips32/Toolchain.defs | 4 ++-- arch/misoc/src/lm32/Toolchain.defs | 4 ++-- arch/misoc/src/minerva/Toolchain.defs | 4 ++-- arch/or1k/src/mor1kx/Toolchain.defs | 4 ++-- arch/risc-v/src/common/Toolchain.defs | 4 ++-- arch/sparc/src/sparc_v8/Toolchain.defs | 4 ++-- arch/xtensa/src/lx6/Toolchain.defs | 4 ++-- arch/xtensa/src/lx7/Toolchain.defs | 4 ++-- boards/sim/sim/sim/scripts/Make.defs | 4 ++-- 15 files changed, 30 insertions(+), 30 deletions(-) diff --git a/arch/arm/src/common/Toolchain.defs b/arch/arm/src/common/Toolchain.defs index 26074744879..af15fc30748 100644 --- a/arch/arm/src/common/Toolchain.defs +++ b/arch/arm/src/common/Toolchain.defs @@ -251,8 +251,8 @@ endif # Architecture flags -ARCHCFLAGS += -Wstrict-prototypes -ARCHCXXFLAGS += -nostdinc++ +ARCHCFLAGS += -Wstrict-prototypes -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -nostdinc++ -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/arch/arm64/src/Toolchain.defs b/arch/arm64/src/Toolchain.defs index 1150b661f90..832565c28f4 100644 --- a/arch/arm64/src/Toolchain.defs +++ b/arch/arm64/src/Toolchain.defs @@ -92,8 +92,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Werror -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Werror -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/arch/avr/src/avr/Toolchain.defs b/arch/avr/src/avr/Toolchain.defs index 80aee362065..ea98f72bcbf 100644 --- a/arch/avr/src/avr/Toolchain.defs +++ b/arch/avr/src/avr/Toolchain.defs @@ -101,8 +101,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/arch/avr/src/avr32/Toolchain.defs b/arch/avr/src/avr32/Toolchain.defs index 971d0a214db..8c9d19510ce 100644 --- a/arch/avr/src/avr32/Toolchain.defs +++ b/arch/avr/src/avr32/Toolchain.defs @@ -48,8 +48,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/arch/ceva/src/xc5/Toolchain.defs b/arch/ceva/src/xc5/Toolchain.defs index 75c6f85dc15..966851da06b 100644 --- a/arch/ceva/src/xc5/Toolchain.defs +++ b/arch/ceva/src/xc5/Toolchain.defs @@ -67,8 +67,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ARCHCPUFLAGS = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION) ARCHCPUFLAGS += -Wa,-p -mmsg-full-path -TARG:arch=cevaxc5 -Wa,-vdiv4 -Wno-unused diff --git a/arch/ceva/src/xm6/Toolchain.defs b/arch/ceva/src/xm6/Toolchain.defs index e4ea488e670..256d4dec3ca 100644 --- a/arch/ceva/src/xm6/Toolchain.defs +++ b/arch/ceva/src/xm6/Toolchain.defs @@ -67,8 +67,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ARCHCPUFLAGS = -mrtl-version-$(RTL_VERSION) -Wa,-rtl$(RTL_VERSION) ARCHCPUFLAGS += -Wa,-p diff --git a/arch/mips/src/mips32/Toolchain.defs b/arch/mips/src/mips32/Toolchain.defs index dacc28b527c..9f852c354ac 100644 --- a/arch/mips/src/mips32/Toolchain.defs +++ b/arch/mips/src/mips32/Toolchain.defs @@ -262,8 +262,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/arch/misoc/src/lm32/Toolchain.defs b/arch/misoc/src/lm32/Toolchain.defs index ffd86a4f142..bde979f0053 100644 --- a/arch/misoc/src/lm32/Toolchain.defs +++ b/arch/misoc/src/lm32/Toolchain.defs @@ -74,8 +74,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/arch/misoc/src/minerva/Toolchain.defs b/arch/misoc/src/minerva/Toolchain.defs index a863095f206..2848a979689 100644 --- a/arch/misoc/src/minerva/Toolchain.defs +++ b/arch/misoc/src/minerva/Toolchain.defs @@ -46,8 +46,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas # Default toolchain diff --git a/arch/or1k/src/mor1kx/Toolchain.defs b/arch/or1k/src/mor1kx/Toolchain.defs index 68ddff4d2ce..e048f115832 100644 --- a/arch/or1k/src/mor1kx/Toolchain.defs +++ b/arch/or1k/src/mor1kx/Toolchain.defs @@ -57,8 +57,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/arch/risc-v/src/common/Toolchain.defs b/arch/risc-v/src/common/Toolchain.defs index ca821831bd1..0bb6e3e055f 100644 --- a/arch/risc-v/src/common/Toolchain.defs +++ b/arch/risc-v/src/common/Toolchain.defs @@ -76,8 +76,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/arch/sparc/src/sparc_v8/Toolchain.defs b/arch/sparc/src/sparc_v8/Toolchain.defs index 6e34981bae6..b6c199e8d06 100644 --- a/arch/sparc/src/sparc_v8/Toolchain.defs +++ b/arch/sparc/src/sparc_v8/Toolchain.defs @@ -79,8 +79,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/arch/xtensa/src/lx6/Toolchain.defs b/arch/xtensa/src/lx6/Toolchain.defs index 729ff369790..c2ebf14b390 100644 --- a/arch/xtensa/src/lx6/Toolchain.defs +++ b/arch/xtensa/src/lx6/Toolchain.defs @@ -86,8 +86,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/arch/xtensa/src/lx7/Toolchain.defs b/arch/xtensa/src/lx7/Toolchain.defs index 2b05eafde20..7dd3a23630c 100644 --- a/arch/xtensa/src/lx7/Toolchain.defs +++ b/arch/xtensa/src/lx7/Toolchain.defs @@ -86,8 +86,8 @@ endif ARCHCFLAGS += -fno-common ARCHCXXFLAGS += -fno-common -nostdinc++ -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD) diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs index e530684c69a..1f45ef6fd33 100644 --- a/boards/sim/sim/sim/scripts/Make.defs +++ b/boards/sim/sim/sim/scripts/Make.defs @@ -105,8 +105,8 @@ ARCHCXXFLAGS += -fvisibility=hidden ARCHCFLAGS += -ffunction-sections -fdata-sections ARCHCXXFLAGS += -ffunction-sections -fdata-sections -ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -ARCHCXXFLAGS += -Wall -Wshadow -Wundef +ARCHCFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas +ARCHCXXFLAGS += -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas ifneq ($(CONFIG_CXX_STANDARD),) ARCHCXXFLAGS += -std=$(CONFIG_CXX_STANDARD)