From 3c59b8e9ec62e4084653b998331c65be1bbe7528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Wed, 10 May 2023 19:35:11 +0200 Subject: [PATCH] Fix: disable "redundant move" warnings for GCC (#10803) GCC warns about redundant std::move while clang warns when they are missing, so we silence the less harmful one --- cmake/CompileFlags.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index 27d9a48efa..6a942b2160 100644 --- a/cmake/CompileFlags.cmake +++ b/cmake/CompileFlags.cmake @@ -136,6 +136,10 @@ macro(compile_flags) # -flifetime-dse=2 (default since GCC 6) doesn't play # well with our custom pool item allocator "$<$:-flifetime-dse=1>" + + # We have a fight between clang wanting std::move() and gcc not wanting it + # and of course they both warn when the other compiler is happy + "-Wno-redundant-move" ) endif()