From f88b2b5b021ee5eed998f012dc69632db35fd5cf Mon Sep 17 00:00:00 2001 From: William Lee Date: Tue, 25 Jun 2024 13:07:03 +0800 Subject: [PATCH] (MOD) Disabled some parameters for C compiler in order to run github action successfully. --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bae425e..bdc4980 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,16 +5,16 @@ project (Compound) set(CMAKE_C_COMPILER gcc) set(WALL -Waddress - -Warray-compare + # -Warray-compare -Warray-parameter=2 -Wbool-compare -Wbool-operation -Wchar-subscripts -Wcomment -Wdangling-else - -Wdangling-pointer=2 + # -Wdangling-pointer=2 -Wenum-compare - -Wenum-int-mismatch + # -Wenum-int-mismatch -Wformat=1 -Wformat-contains-nul -Wformat-diag @@ -26,7 +26,7 @@ set(WALL -Waddress -Wimplicit -Wimplicit-function-declaration -Wimplicit-int - -Winfinite-recursion + # -Winfinite-recursion -Wint-in-bool-context -Wlogical-not-parentheses -Wmain @@ -65,7 +65,7 @@ set(WALL -Waddress -Wunused-local-typedefs -Wunused-value -Wunused-variable - -Wuse-after-free=2 + # -Wuse-after-free=2 -Wvla-parameter -Wvolatile-register-var -Wzero-length-bounds