From dc746f7a8c8a5098bf096f0d5257e19ed93014e8 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Mon, 6 Feb 2023 15:43:51 +0000 Subject: [PATCH] Enable more warning flags --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a1a73c..d828c5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,6 +94,21 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) -Wextra -Werror -Wpedantic + -Wabstract-final-class + -Walloca + -Warray-bounds-pointer-arithmetic + -Warray-parameter + -Wassign-enum + -Wconversion + -Wsign-conversion + -Wnon-virtual-dtor + -Wold-style-cast + -Wcast-align + -Wunused + -Woverloaded-virtual + -Wdouble-promotion + -Wformat=2 + -fno-rtti -fno-builtin-strlen