ci: Disable -Wc11-extensions on FreeBSD

Closes #4363.
This commit is contained in:
ZyX
2016-02-28 04:20:27 +03:00
parent 90cbd70d1a
commit 92d4dfdca5

View File

@@ -202,6 +202,12 @@ if(MSVC)
else()
add_definitions(-Wall -Wextra -pedantic -Wno-unused-parameter
-Wstrict-prototypes -std=gnu99)
# On FreeBSD 64 math.h uses unguarded C11 extension, which taints clang
# 3.4.1 used there.
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
add_definitions(-Wno-c11-extensions)
endif()
endif()
if(MINGW)