diff options
author | ZyX <kp-pav@yandex.ru> | 2016-02-28 04:20:27 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-02-28 06:58:47 +0300 |
commit | 92d4dfdca5f83906f4a9fa7409c7c8f5e603e4d5 (patch) | |
tree | db865812803bb62801cbb820ef4a8ddd54df6a66 | |
parent | 90cbd70d1a82cbad5f60f43a56e14aab647c0f8a (diff) | |
download | rneovim-92d4dfdca5f83906f4a9fa7409c7c8f5e603e4d5.tar.gz rneovim-92d4dfdca5f83906f4a9fa7409c7c8f5e603e4d5.tar.bz2 rneovim-92d4dfdca5f83906f4a9fa7409c7c8f5e603e4d5.zip |
ci: Disable -Wc11-extensions on FreeBSD
Closes #4363.
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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) |