summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-12 21:17:26 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-14 18:14:46 +0200
commitf4667d5cc9fbe8a5a65df136736a347c1fb37fd0 (patch)
treea2064cc614220d7bab3ceddc653130d88e6ebf99 /cmake
parent17b26bdd8d143027ec885fc6a1b5336947067e8b (diff)
cmake/mingw-w64: add some warns for C units
Diffstat (limited to 'cmake')
-rw-r--r--cmake/mingw-w64.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake
index 4b5c2aa5..790d4f46 100644
--- a/cmake/mingw-w64.cmake
+++ b/cmake/mingw-w64.cmake
@@ -74,9 +74,11 @@ if(CMAKE_COMPILER_IS_CLANG)
set(clang-warns "-Wweak-vtables")
endif()
set(_CXX_WARNS "")
+set(_C_WARNS "")
if(WARNINGS_ENABLE)
set(usual-warns "-Wall -Wextra -pedantic -Wdelete-non-virtual-dtor -Wno-suggest-override -Wno-odr -Wno-attributes -Wcast-align -Wc++14-compat")
set(_CXX_WARNS "${usual-warns} ${clang-warns} ${noisy-warns} ${missing-override}")
+ set(_C_WARNS "-Wall -Wextra -pedantic -Wcast-align -Wno-attributes")
endif()
foreach(j C CXX)