Merge pull request #89 from rdb/patch-1

Explicitly disable use of GNU89 inline semantics
This commit is contained in:
kcat 2016-12-20 13:43:59 -08:00 committed by GitHub
commit 19ba71e767

View File

@ -167,6 +167,8 @@ ENDIF()
# Make sure we have C99-style inline semantics with GCC (4.3 or newer).
IF(CMAKE_COMPILER_IS_GNUCC)
SET(CMAKE_C_FLAGS "-fno-gnu89-inline ${CMAKE_C_FLAGS}")
SET(OLD_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
# Force no inlining for the next test.
SET(CMAKE_REQUIRED_FLAGS "${OLD_REQUIRED_FLAGS} -fno-inline")