summaryrefslogtreecommitdiffhomepage
path: root/cmake/mingw-w64.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/mingw-w64.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)