mirror of https://github.com/OpenTTD/OpenTTD
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 onepull/10922/head
parent
df417168c6
commit
4cc0c21182
|
@ -136,6 +136,10 @@ macro(compile_flags)
|
||||||
# -flifetime-dse=2 (default since GCC 6) doesn't play
|
# -flifetime-dse=2 (default since GCC 6) doesn't play
|
||||||
# well with our custom pool item allocator
|
# well with our custom pool item allocator
|
||||||
"$<$<BOOL:${LIFETIME_DSE_FOUND}>:-flifetime-dse=1>"
|
"$<$<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
|
||||||
|
"-Wno-redundant-move"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue