From 75a2b14c07ab3cb0dd6ae49e0fd74ff335fb12e5 Mon Sep 17 00:00:00 2001 From: William Date: Wed, 26 Jun 2024 08:56:11 +0800 Subject: [PATCH] (MOD) Resumed using -Wall for compiler options. --- CMakeLists.txt | 69 +------------------------------------------------- 1 file changed, 1 insertion(+), 68 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdc4980..05e7112 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,74 +4,7 @@ project (Compound) set(CMAKE_C_COMPILER gcc) -set(WALL -Waddress - # -Warray-compare - -Warray-parameter=2 - -Wbool-compare - -Wbool-operation - -Wchar-subscripts - -Wcomment - -Wdangling-else - # -Wdangling-pointer=2 - -Wenum-compare - # -Wenum-int-mismatch - -Wformat=1 - -Wformat-contains-nul - -Wformat-diag - -Wformat-extra-args - -Wformat-overflow=1 - -Wformat-truncation=1 - -Wformat-zero-length - -Wframe-address - -Wimplicit - -Wimplicit-function-declaration - -Wimplicit-int - # -Winfinite-recursion - -Wint-in-bool-context - -Wlogical-not-parentheses - -Wmain - -Wmaybe-uninitialized - -Wmemset-elt-size - -Wmemset-transposed-args - -Wmisleading-indentation - -Wmismatched-dealloc - -Wmissing-attributes - -Wmissing-braces - -Wmultistatement-macros - -Wnonnull - -Wnonnull-compare - -Wopenmp-simd - -Wpacked-not-aligned - -Wparentheses - -Wpointer-sign - -Wrestrict - -Wreturn-type - -Wsequence-point - -Wsizeof-array-div - -Wsizeof-pointer-div - -Wsizeof-pointer-memaccess - -Wstrict-aliasing - -Wstrict-overflow=1 - -Wswitch - -Wtautological-compare - -Wtrigraphs - -Wuninitialized - -Wunknown-pragmas - -Wunused - -Wunused-but-set-variable - -Wunused-const-variable=1 - -Wunused-function - -Wunused-label - -Wunused-local-typedefs - -Wunused-value - -Wunused-variable - # -Wuse-after-free=2 - -Wvla-parameter - -Wvolatile-register-var - -Wzero-length-bounds -) - -add_compile_options(-g -std=c99 ${WALL} -Wextra -D__DEBUG__) +add_compile_options(-g -std=c99 -Wall -Wextra -D__DEBUG__) set(SHARED_SOURCE MemMan/src/memman.c