Added explicit flag for using gnu89 C standard.
This commit is contained in:
parent
2116fde993
commit
457c68580f
@ -27,6 +27,10 @@ set (Scyther_sources
|
||||
# If we are in a debug mode we want to be strict
|
||||
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -DDEBUG")
|
||||
|
||||
# c11 standard has different inline semantics, yields warning.
|
||||
# Since c11 is the default for gcc 5, we explicitly include the switch.
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu89")
|
||||
|
||||
# Make scanner and parser
|
||||
include (ScannerParser.cmake)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user