Skip to content

Commit 37592a0

Browse files
committed
COMP: Remove default -Wno-deprecated from the ITK warning flags
On Clang, -Wno-deprecated subsumes -Wdeprecated-declarations and hides [[deprecated]]/ITK_DEPRECATED API warnings; on GCC the two are independent, so deprecation visibility differed by compiler. Removing the flag surfaces these warnings uniformly. The narrower -Wno-deprecated-copy keeps the -Wextra implicit-copy lint quiet in headers (e.g. vendored GDCM) pending separate cleanup. ITK_CXX_WARNING_FLAGS remains available to override the warning set.
1 parent b3f7244 commit 37592a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMake/ITKSetStandardCompilerFlags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function(check_compiler_warning_flags c_warning_flags_var cxx_warning_flags_var)
133133
# Check this list on C++ compiler only
134134
set(
135135
cxx_flags
136-
-Wno-deprecated
136+
-Wno-deprecated-copy # implicit-copy lint suppressed; -Wdeprecated-declarations stays active
137137
-Wno-invalid-offsetof
138138
-Wno-undefined-var-template # suppress invalid warning when explicitly instantiated in another translation unit
139139
-Woverloaded-virtual

0 commit comments

Comments
 (0)