From b97eaabb78ac057ca97e82b47cbdd5c450f4ccf3 Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Fri, 8 Apr 2022 16:24:44 -0700 Subject: [PATCH] Silence "unknown warning" in Clang 13 Clang 13 removed the `return-std-move-in-c++11` warning entirely, so specifying it now warns that the warning is unknown. --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 809b3efdd937..7b2524361a18 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -459,7 +459,6 @@ target_compile_options( $<$:-Wno-missing-prototypes> $<$:-Wno-nonportable-system-include-path> $<$:-Wno-reserved-id-macro> - $<$:-Wno-return-std-move-in-c++11> $<$:-Wno-shadow-field-in-constructor> $<$:-Wno-shadow-field> $<$:-Wno-shorten-64-to-32> @@ -467,6 +466,9 @@ target_compile_options( $<$:-Wno-unused-member-function> $<$:-Wno-unused-template> + # This warning was removed in Clang 13 + $<$,$,13.0>>:-Wno-return-std-move-in-c++11> + $<$:/W3> $<$:/wd4018> # 4018: disable "signed/unsigned mismatch" $<$:/wd4141> # 4141: 'inline' used more than once