From 1cde36cc8d5cc1870e54cc11202e85eef50fd00e Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 10 Sep 2022 16:09:32 +0200 Subject: build: Add -Wno-volatile to default CXXFLAGS. --- build/scons_tools/tool_selectmcu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/scons_tools/tool_selectmcu.py b/build/scons_tools/tool_selectmcu.py index 18f8975..f73caa1 100644 --- a/build/scons_tools/tool_selectmcu.py +++ b/build/scons_tools/tool_selectmcu.py @@ -31,7 +31,7 @@ def SelectMCU(env, mcu, variant_dir = None): RANLIB = '${TOOLCHAIN}ranlib', CCFLAGS = Split('-O2 -Wall -ggdb -ffunction-sections -fdata-sections'), - CXXFLAGS = Split('-std=c++20 -fno-exceptions -fno-rtti -fcoroutines'), + CXXFLAGS = Split('-std=c++20 -fno-exceptions -fno-rtti -fcoroutines -Wno-volatile'), ASFLAGS = Split('-c -x assembler-with-cpp'), LINKFLAGS = Split('-Wall -nostartfiles -Wl,-T${LINK_SCRIPT} -Wl,--gc-sections'), -- cgit v1.2.3