mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 13:40:35 +00:00
Turn incompatible-pointer-types warning into error
This commit is contained in:
parent
031b740451
commit
137a14e106
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ addons:
|
||||||
env:
|
env:
|
||||||
- CMAKE_FLAGS="-Denable-profiling=1"
|
- CMAKE_FLAGS="-Denable-profiling=1"
|
||||||
- CMAKE_FLAGS="-Denable-floats=1 -Denable-profiling=1"
|
- CMAKE_FLAGS="-Denable-floats=1 -Denable-profiling=1"
|
||||||
- CMAKE_FLAGS="-Denable-floats=0"
|
- CMAKE_FLAGS="-Denable-floats=1"
|
||||||
- CMAKE_FLAGS="-Denable-trap-on-fpe=1"
|
- CMAKE_FLAGS="-Denable-trap-on-fpe=1"
|
||||||
- CMAKE_FLAGS="-Denable-fpe-check=1"
|
- CMAKE_FLAGS="-Denable-fpe-check=1"
|
||||||
- CMAKE_FLAGS="-Denable-ipv6=0"
|
- CMAKE_FLAGS="-Denable-ipv6=0"
|
||||||
|
|
|
@ -184,7 +184,7 @@ if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_C
|
||||||
endif ( NOT APPLE AND NOT OS2 )
|
endif ( NOT APPLE AND NOT OS2 )
|
||||||
|
|
||||||
# define some warning flags
|
# define some warning flags
|
||||||
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wno-unused-parameter -Wdeclaration-after-statement -Werror=implicit-function-declaration" )
|
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wno-unused-parameter -Wdeclaration-after-statement -Werror=implicit-function-declaration -Werror=incompatible-pointer-types" )
|
||||||
|
|
||||||
# prepend to build type specific flags, to allow users to override
|
# prepend to build type specific flags, to allow users to override
|
||||||
set ( CMAKE_C_FLAGS_DEBUG "-g ${CMAKE_C_FLAGS_DEBUG}" )
|
set ( CMAKE_C_FLAGS_DEBUG "-g ${CMAKE_C_FLAGS_DEBUG}" )
|
||||||
|
|
Loading…
Reference in a new issue