Skip to content

Commit ac03874

Browse files
JaagupAverinnashif
authored andcommitted
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: Jaagup Averin <[email protected]>
1 parent a2c55e0 commit ac03874

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/compiler/clang/compiler_flags.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ set_compiler_property(PROPERTY warning_error_coding_guideline
104104
# No printf-return-value optimizations in clang
105105
set_compiler_property(PROPERTY no_printf_return_value)
106106

107+
# Clang does not support "-Wno-volatile"
108+
set_property(TARGET compiler-cpp PROPERTY dialect_cpp2a "-std=c++2a" "-Wno-register")
109+
set_property(TARGET compiler-cpp PROPERTY dialect_cpp20 "-std=c++20" "-Wno-register")
110+
set_property(TARGET compiler-cpp PROPERTY dialect_cpp2b "-std=c++2b" "-Wno-register")
111+
107112
###################################################
108113
# This section covers all remaining C / C++ flags #
109114
###################################################

0 commit comments

Comments
 (0)