From 5608b8735e6f38edcf05093df4e9031e3f10419b Mon Sep 17 00:00:00 2001 From: Marek Habersack Date: Tue, 16 Jun 2020 22:46:59 +0200 Subject: [PATCH] [C++] Actually use compilation options Fixes: https://github.com/dankamongmen/notcurses/issues/722 `-Wpedantic` is dropped because C code uses designated structure initializers which are available in C++20 onward (and we use C++17 ATM). Once we switch to C++20 we should re-enable the flag. `-fno-exceptions` is dropped because we do have exceptions, so... --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b0bfa71be..d264d795f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -272,7 +272,6 @@ set(NCPP_COMPILE_OPTIONS -Wnull-dereference -Wmisleading-indentation -Wunused - -Wpedantic -Wsuggest-override -Wno-c99-extensions -fno-strict-aliasing @@ -281,7 +280,6 @@ set(NCPP_COMPILE_OPTIONS -finline-limit=300 -fstack-protector -fno-rtti - -fno-exceptions -fpic ) @@ -291,12 +289,12 @@ set(NCPP_COMPILE_DEFINITIONS_PUBLIC target_compile_options(notcurses++ PRIVATE - ${NCPP_COMPILLE_OPTIONS} + ${NCPP_COMPILE_OPTIONS} ) target_compile_options(notcurses++-static PRIVATE - ${NCPP_COMPILLE_OPTIONS} + ${NCPP_COMPILE_OPTIONS} ) target_compile_definitions(notcurses++