diff --git a/arch/arm/src/common/Toolchain.defs b/arch/arm/src/common/Toolchain.defs index 2607474487..af15fc3074 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 1150b661f9..832565c28f 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 80aee36206..ea98f72bcb 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 971d0a214d..8c9d19510c 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 75c6f85dc1..966851da06 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 e4ea488e67..256d4dec3c 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 dacc28b527..9f852c354a 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 ffd86a4f14..bde979f005 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 a863095f20..2848a97968 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 68ddff4d2c..e048f11583 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 ca821831bd..0bb6e3e055 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 6e34981bae..b6c199e8d0 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 729ff36979..c2ebf14b39 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 2b05eafde2..7dd3a23630 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 e530684c69..1f45ef6fd3 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)