From c65b0b5774692bcd441f202ac664a6b63c8abfb9 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 18 Jul 2020 13:26:59 +0200 Subject: LV2: Tighten compiler warnings and drop optimization We want as much warnings as we can get, and we treat any warnings not explicitly disabled as an error. We have to explicitly disable the `unused-value` warning, as the VST processing code triggers it. This patch also removes the hardwired optimization flag, as that is better handled by the built in build type mechanism of cmake. Build as a release build to get full optimizations: mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. Similarly specify `CMAKE_BUILD_TYPE=Debug` for debug builds. --- plugins/LV2/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/LV2/CMakeLists.txt b/plugins/LV2/CMakeLists.txt index c76a3d9..eca33f3 100755 --- a/plugins/LV2/CMakeLists.txt +++ b/plugins/LV2/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.9) project(airwindows_ports) set(CMAKE_CXX_STANDARD 14) -add_compile_options(-O2 -D__cdecl=) +add_compile_options(-Wall -Werror -Wno-unused-value) include(Helpers.cmake) -- cgit v1.2.3