Commit ac038744 authored by Jaagup Averin's avatar Jaagup Averin Committed by Anas Nashif
Browse files

llvm: Remove "-Wno-volatile" from clang compiler args.



-Wno-volatile is set by gcc/compiler_flags.cmake,
but is not supported by clang and generated warnings.

Signed-off-by: default avatarJaagup Averin <jaagup.averin@gmail.com>
parent a2c55e01
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -104,6 +104,11 @@ set_compiler_property(PROPERTY warning_error_coding_guideline
# No printf-return-value optimizations in clang
set_compiler_property(PROPERTY no_printf_return_value)

# Clang does not support "-Wno-volatile"
set_property(TARGET compiler-cpp PROPERTY dialect_cpp2a "-std=c++2a" "-Wno-register")
set_property(TARGET compiler-cpp PROPERTY dialect_cpp20 "-std=c++20" "-Wno-register")
set_property(TARGET compiler-cpp PROPERTY dialect_cpp2b "-std=c++2b" "-Wno-register")

###################################################
# This section covers all remaining C / C++ flags #
###################################################