From 901b3a0fe5790dcc6f240bb68253b857758a0875 Mon Sep 17 00:00:00 2001 From: Nav Date: Thu, 21 Oct 2021 19:25:58 +0100 Subject: [PATCH] Enabled additional compiler warnings for unnecessary std::move invocations. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b5d971d1..0b4d607e 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,6 +183,7 @@ add_executable(Bloom set_target_properties(Bloom PROPERTIES OUTPUT_NAME bloom) target_include_directories(Bloom PUBLIC ./) +target_include_directories(Bloom PUBLIC /opt/Qt/6.1.2/Src) # Copy AVR8 TDFs to build directory and construct JSON mapping of AVR8 target signatures to TDF paths. add_custom_command( @@ -245,6 +246,8 @@ target_compile_options( PUBLIC -std=c++2a PUBLIC -pedantic PUBLIC -Wconversion + PUBLIC -Wpessimizing-move + PUBLIC -Wredundant-move PUBLIC -fno-sized-deallocation PUBLIC $<$:-g> PUBLIC $<$:-O0>