Skip to content

Commit 0ebe309

Browse files
committed
cmake: do not show compile warnings by default (even in maintainer mode)
1 parent 2e6f439 commit 0ebe309

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,17 @@ elseif(SUNPRO)
167167

168168
endif()
169169

170+
#
171+
# TODO: We should fix the warnings below and then also increase warning
172+
# level and fix remaining warnings. However, before this is done, we do
173+
# not show the warnings to not break our release builds which are done
174+
# in maintainer mode.
175+
#
176+
177+
set(SHOW_JDBC_WARNINGS OFF CACHE BOOL "Show compile warnings for legacy code")
178+
mark_as_advanced(SHOW_JDBC_WARNINGS)
170179

171-
if(NOT MAINTAINER_MODE)
180+
if(NOT SHOW_JDBC_WARNINGS)
172181
if(MSVC)
173182

174183
add_compile_options(

0 commit comments

Comments
 (0)