aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-07-18 13:26:59 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-07-18 13:26:59 +0200
commitc65b0b5774692bcd441f202ac664a6b63c8abfb9 (patch)
tree58ce0df91e52dc7e289b64e52ce8f1c962539d84
parentbd7f895d3c459a6ff1d14a6adbbb79c07133947c (diff)
downloadairwindows-lv2-port-c65b0b5774692bcd441f202ac664a6b63c8abfb9.tar.gz
airwindows-lv2-port-c65b0b5774692bcd441f202ac664a6b63c8abfb9.tar.bz2
airwindows-lv2-port-c65b0b5774692bcd441f202ac664a6b63c8abfb9.zip
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.
-rwxr-xr-xplugins/LV2/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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)