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
(cherry picked from commit 3c59b8e9ec
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
43c1b42a2c
commit
115241a052
@@ -149,6 +149,10 @@ macro(compile_flags)
|
||||
# -flifetime-dse=2 (default since GCC 6) doesn't play
|
||||
# well with our custom pool item allocator
|
||||
"$<$<BOOL:${LIFETIME_DSE_FOUND}>:-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
|
||||
"$<$<COMPILE_LANGUAGE:CXX>:-Wno-redundant-move>"
|
||||
)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user