Skip to content

Commit f01db7a

Browse files
committed
cmake: clang: -Wvolatile is deprecated
-Wvolatile is deprecated Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 84be110 commit f01db7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/compiler/clang/compiler_flags.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ include(${ZEPHYR_BASE}/cmake/compiler/gcc/compiler_flags.cmake)
33

44
# Now, let's overwrite the flags that are different in clang.
55

6+
set_property(TARGET compiler-cpp PROPERTY dialect_cpp2a "-std=c++2a"
7+
"-Wno-register")
8+
set_property(TARGET compiler-cpp PROPERTY dialect_cpp20 "-std=c++20"
9+
"-Wno-register")
10+
set_property(TARGET compiler-cpp PROPERTY dialect_cpp2b "-std=c++2b"
11+
"-Wno-register")
12+
613
# No property flag, clang doesn't understand fortify at all
714
set_compiler_property(PROPERTY security_fortify_compile_time)
815
set_compiler_property(PROPERTY security_fortify_run_time)

0 commit comments

Comments
 (0)