Skip to content

Commit 5d8bd42

Browse files
committed
COMP: Disable all CTest warning suppressions to audit hidden warnings
Comment out every CTEST_CUSTOM_WARNING_EXCEPTION and CTEST_CUSTOM_ERROR_EXCEPTION pattern so CI surfaces the warnings each suppression was masking. This is a diagnostic pass to decide which suppressions are still needed versus which hide real, fixable warnings. The set() scaffolding is preserved so the configured CTestCustom.cmake remains valid with an empty exception list. Suppressions will be restored selectively after reviewing the CDash output.
1 parent 4a95585 commit 5d8bd42

1 file changed

Lines changed: 60 additions & 58 deletions

File tree

CMake/CTestCustom.cmake.in

Lines changed: 60 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -34,74 +34,76 @@ set(CTEST_CUSTOM_COVERAGE_EXCLUDE
3434
".*/Utilities/.*"
3535
)
3636

37+
# AUDIT: every warning suppression below is temporarily disabled so CI
38+
# surfaces the warnings each pattern was hiding. Restore selectively.
3739
set(CTEST_CUSTOM_WARNING_EXCEPTION
3840
${CTEST_CUSTOM_WARNING_EXCEPTION}
39-
"has no symbols"
40-
"UseITK\\.cmake"
41-
"This warning is for project developers"
42-
"DirectWarningToFile"
43-
"WITH_MAINTAINER_WARNINGS"
44-
"which will suppress this warning"
45-
"WARNING: Cache entry deserialization failed, entry ignored"
46-
"LabelGeometryImageFilter.*deprecated"
47-
"note: declared here"
48-
"RemovedInSphinx[0-9]+Warning"
49-
"ipo: warning #11053"
50-
"ipo: warning #11053"
51-
"vxl.core.vnl.algo"
52-
"vxl.core.vnl"
53-
"vxl.v3p.netlib"
54-
"itkjpeg"
55-
"usr.include.stdint.h"
56-
"Warning itk::Statistics::Histogram"
57-
"itkIOCommonTest.cxx:.*warning:.* is deprecated"
58-
"/usr/bin/ld: warning: libnetcdf.so.3, needed by.*may conflict with libnetcdf.so.4"
59-
"itkQuadEdgeMeshEdgeMergeDecimationFilter.hxx:.*warning: unused parameter.*iEdge.*"
60-
"vnl_diag_matrix.h"
61-
"WARNING non-zero return value in ctest"
62-
"Warning.*Anachronism.*"
63-
"attempted multiple inclusion of file"
64-
"warning LNK4221"
65-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Dd][Ii][Cc][Oo][Mm][Pp]arser[/\\\\].*[Ww]arning.*"
66-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Ee]xpat[/\\\\].*[Ww]arning.*"
67-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Jj][Pp][Ee][Gg][/\\\\].*[Ww]arning.*"
68-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Kk][Ww][Ss]ys[/\\\\].*[Ww]arning.*"
69-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Mm]eta[Ii][Oo][/\\\\].*[Ww]arning.*"
70-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Nn]etlib[/\\\\].*[Ww]arning.*"
71-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Nn][Ii][Ff][Tt][Ii][/\\\\].*[Ww]arning.*"
72-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Oo]pen[Jj][Pp][Ee][Gg][/\\\\].*[Ww]arning.*"
73-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Pp][Nn][Gg][/\\\\].*[Ww]arning.*"
74-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Tt][Ii][Ff][Ff][/\\\\].*[Ww]arning.*"
75-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Vv][Nn][Ll][/\\\\].*[Ww]arning.*"
76-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Vv][Nn][Ll][Ii]nstantiation[/\\\\].*[Ww]arning.*"
77-
".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Zz][Ll][Ii][Bb][/\\\\].*[Ww]arning.*"
78-
".*Microsoft.*include.*win.*.h.*[Ww]arning.*"
79-
".*include.opencv2.*warning.*"
80-
".*core.vidl.*warning.*"
81-
".*core.vnl.vnl_matrix_fixed.h.*warning.*"
82-
# DCMTK
83-
"Note: checking out.*"
84-
"-- Warning: SNDFILE support will be disabled because libsndfile was not found.*"
85-
# FFTW ExternalProject
86-
".*fftw[fd]/src/fftw[fd]./*"
87-
"libtool: install: warning: relinking .libfftw3f?_threads.la."
88-
# OpenCV
89-
"opencv/modules"
90-
91-
# Ignore clang's summary warning, assuming prior text has matched some
92-
# other warning expression:
93-
"[0-9,]+ warnings? generated."
41+
# "has no symbols"
42+
# "UseITK\\.cmake"
43+
# "This warning is for project developers"
44+
# "DirectWarningToFile"
45+
# "WITH_MAINTAINER_WARNINGS"
46+
# "which will suppress this warning"
47+
# "WARNING: Cache entry deserialization failed, entry ignored"
48+
# "LabelGeometryImageFilter.*deprecated"
49+
# "note: declared here"
50+
# "RemovedInSphinx[0-9]+Warning"
51+
# "ipo: warning #11053"
52+
# "ipo: warning #11053"
53+
# "vxl.core.vnl.algo"
54+
# "vxl.core.vnl"
55+
# "vxl.v3p.netlib"
56+
# "itkjpeg"
57+
# "usr.include.stdint.h"
58+
# "Warning itk::Statistics::Histogram"
59+
# "itkIOCommonTest.cxx:.*warning:.* is deprecated"
60+
# "/usr/bin/ld: warning: libnetcdf.so.3, needed by.*may conflict with libnetcdf.so.4"
61+
# "itkQuadEdgeMeshEdgeMergeDecimationFilter.hxx:.*warning: unused parameter.*iEdge.*"
62+
# "vnl_diag_matrix.h"
63+
# "WARNING non-zero return value in ctest"
64+
# "Warning.*Anachronism.*"
65+
# "attempted multiple inclusion of file"
66+
# "warning LNK4221"
67+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Dd][Ii][Cc][Oo][Mm][Pp]arser[/\\\\].*[Ww]arning.*"
68+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Ee]xpat[/\\\\].*[Ww]arning.*"
69+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Jj][Pp][Ee][Gg][/\\\\].*[Ww]arning.*"
70+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Kk][Ww][Ss]ys[/\\\\].*[Ww]arning.*"
71+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Mm]eta[Ii][Oo][/\\\\].*[Ww]arning.*"
72+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Nn]etlib[/\\\\].*[Ww]arning.*"
73+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Nn][Ii][Ff][Tt][Ii][/\\\\].*[Ww]arning.*"
74+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Oo]pen[Jj][Pp][Ee][Gg][/\\\\].*[Ww]arning.*"
75+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Pp][Nn][Gg][/\\\\].*[Ww]arning.*"
76+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Tt][Ii][Ff][Ff][/\\\\].*[Ww]arning.*"
77+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Vv][Nn][Ll][/\\\\].*[Ww]arning.*"
78+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Vv][Nn][Ll][Ii]nstantiation[/\\\\].*[Ww]arning.*"
79+
# ".*[/\\\\][Mm]odules[/\\\\][Tt]hird[Pp]arty[/\\\\][Zz][Ll][Ii][Bb][/\\\\].*[Ww]arning.*"
80+
# ".*Microsoft.*include.*win.*.h.*[Ww]arning.*"
81+
# ".*include.opencv2.*warning.*"
82+
# ".*core.vidl.*warning.*"
83+
# ".*core.vnl.vnl_matrix_fixed.h.*warning.*"
84+
# # DCMTK
85+
# "Note: checking out.*"
86+
# "-- Warning: SNDFILE support will be disabled because libsndfile was not found.*"
87+
# # FFTW ExternalProject
88+
# ".*fftw[fd]/src/fftw[fd]./*"
89+
# "libtool: install: warning: relinking .libfftw3f?_threads.la."
90+
# # OpenCV
91+
# "opencv/modules"
92+
#
93+
# # Ignore clang's summary warning, assuming prior text has matched some
94+
# # other warning expression:
95+
# "[0-9,]+ warnings? generated."
9496
)
9597

9698
if(APPLE)
9799
set(CTEST_CUSTOM_WARNING_EXCEPTION
98100
${CTEST_CUSTOM_WARNING_EXCEPTION}
99-
"warning -.: directory name .* does not exist"
100-
"ld.*warning.*duplicate dylib.*"
101+
# "warning -.: directory name .* does not exist"
102+
# "ld.*warning.*duplicate dylib.*"
101103
)
102104
endif()
103105

104106
set(CTEST_CUSTOM_ERROR_EXCEPTION
105107
${CTEST_CUSTOM_ERROR_EXCEPTION}
106-
"RemovedInSphinx[0-9]+Warning"
108+
# "RemovedInSphinx[0-9]+Warning"
107109
)

0 commit comments

Comments
 (0)