Added explicit flag for using gnu89 C standard.

This commit is contained in:
Cas Cremers 2015-11-27 21:07:30 +00:00
parent 2116fde993
commit 457c68580f

View File

@ -27,6 +27,10 @@ set (Scyther_sources
# If we are in a debug mode we want to be strict # If we are in a debug mode we want to be strict
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -DDEBUG") 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 # Make scanner and parser
include (ScannerParser.cmake) include (ScannerParser.cmake)