Skip to content

Commit 1cb04fe

Browse files
committed
Make CFLAGS stricter for gcc
1 parent 20ae6b4 commit 1cb04fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ project(swe1r-tools)
33

44
set(CMAKE_C_STANDARD 11)
55

6+
if(CMAKE_COMPILER_IS_GNUCC)
7+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wextra -Wno-unused-parameter -Werror")
8+
endif()
9+
610
add_definitions(-D__cdecl=)
711

812
add_executable(decompress decompress.c)

0 commit comments

Comments
 (0)