(MOD) Disabled some parameters for C compiler in order to run github action successfully.
This commit is contained in:
@@ -5,16 +5,16 @@ project (Compound)
|
|||||||
set(CMAKE_C_COMPILER gcc)
|
set(CMAKE_C_COMPILER gcc)
|
||||||
|
|
||||||
set(WALL -Waddress
|
set(WALL -Waddress
|
||||||
-Warray-compare
|
# -Warray-compare
|
||||||
-Warray-parameter=2
|
-Warray-parameter=2
|
||||||
-Wbool-compare
|
-Wbool-compare
|
||||||
-Wbool-operation
|
-Wbool-operation
|
||||||
-Wchar-subscripts
|
-Wchar-subscripts
|
||||||
-Wcomment
|
-Wcomment
|
||||||
-Wdangling-else
|
-Wdangling-else
|
||||||
-Wdangling-pointer=2
|
# -Wdangling-pointer=2
|
||||||
-Wenum-compare
|
-Wenum-compare
|
||||||
-Wenum-int-mismatch
|
# -Wenum-int-mismatch
|
||||||
-Wformat=1
|
-Wformat=1
|
||||||
-Wformat-contains-nul
|
-Wformat-contains-nul
|
||||||
-Wformat-diag
|
-Wformat-diag
|
||||||
@@ -26,7 +26,7 @@ set(WALL -Waddress
|
|||||||
-Wimplicit
|
-Wimplicit
|
||||||
-Wimplicit-function-declaration
|
-Wimplicit-function-declaration
|
||||||
-Wimplicit-int
|
-Wimplicit-int
|
||||||
-Winfinite-recursion
|
# -Winfinite-recursion
|
||||||
-Wint-in-bool-context
|
-Wint-in-bool-context
|
||||||
-Wlogical-not-parentheses
|
-Wlogical-not-parentheses
|
||||||
-Wmain
|
-Wmain
|
||||||
@@ -65,7 +65,7 @@ set(WALL -Waddress
|
|||||||
-Wunused-local-typedefs
|
-Wunused-local-typedefs
|
||||||
-Wunused-value
|
-Wunused-value
|
||||||
-Wunused-variable
|
-Wunused-variable
|
||||||
-Wuse-after-free=2
|
# -Wuse-after-free=2
|
||||||
-Wvla-parameter
|
-Wvla-parameter
|
||||||
-Wvolatile-register-var
|
-Wvolatile-register-var
|
||||||
-Wzero-length-bounds
|
-Wzero-length-bounds
|
||||||
|
Reference in New Issue
Block a user