Skip to content

Commit

Permalink
COMP: Enable warning on C++17 class template argument deduction (CTAD)
Browse files Browse the repository at this point in the history
Enabled a compiler warning from both GCC and Clang on possibly unintended use
of CTAD.

Triggered by our discussions at
 - #3997
 - #3986
  • Loading branch information
N-Dekker authored and dzenanz committed Apr 17, 2023
1 parent 87b48e4 commit d26c07e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMake/ITKSetStandardCompilerFlags.cmake
Expand Up @@ -122,6 +122,7 @@ function(check_compiler_warning_flags c_warning_flags_var cxx_warning_flags_var)
-Wno-invalid-offsetof
-Wno-undefined-var-template # suppress invalid warning when explicitly instantiated in another translation unit
-Woverloaded-virtual
-Wctad-maybe-unsupported
-Wstrict-null-sentinel
)
##-Wno-c++0x-static-nonintegral-init
Expand Down

0 comments on commit d26c07e

Please sign in to comment.