From 92d4dfdca5f83906f4a9fa7409c7c8f5e603e4d5 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 28 Feb 2016 04:20:27 +0300 Subject: ci: Disable -Wc11-extensions on FreeBSD Closes #4363. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c3f4d927d..35612e93dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- cgit