Skip to content

Commit

Permalink
Make CFLAGS stricter for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
JayFoxRox committed May 19, 2018
1 parent 20ae6b4 commit 1cb04fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ project(swe1r-tools)

set(CMAKE_C_STANDARD 11)

if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wextra -Wno-unused-parameter -Werror")
endif()

add_definitions(-D__cdecl=)

add_executable(decompress decompress.c)
Expand Down

0 comments on commit 1cb04fe

Please sign in to comment.