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