From 8f016f7c4f635348d5c35686b1f25546b66d9b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 4 Oct 2021 14:44:00 +0200 Subject: [PATCH] cmake: Enable more compiler warnings --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16742367..736ceb8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,11 +27,16 @@ if(CABLE_COMPILER_GNULIKE) set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Og") add_compile_options( + # -Wcast-align #TODO: Build fails on mips64 -Wcast-qual + -Wmissing-declarations -Wsign-conversion -Wundef + -Wunreachable-code $<$:-Wmissing-prototypes> + $<$:-Wduplicate-enum> $<$:-Wnewline-eof> + $<$:-Wunreachable-code-aggressive> ) if(MSVC) # clang-cl