|
-Wsign-conversion # warn on sign conversions |
According to Clang diagnostics (https://clang.llvm.org/docs/DiagnosticsReference.html#wconversion), -Wconversion controls -Wsign-conversion. This is the same as GCC (https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wsign-conversion), although this only applies to the ${CLANG_WARNINGS} section.
I haven't tried removing -Wsign-conversion and seeing if it still catches it, but perhaps someone else can to verify this behavior. Per the spec, it should be a redundant flag.
cmake_template/cmake/CompilerWarnings.cmake
Line 54 in d19d892
According to Clang diagnostics (https://clang.llvm.org/docs/DiagnosticsReference.html#wconversion),
-Wconversioncontrols-Wsign-conversion. This is the same as GCC (https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wsign-conversion), although this only applies to the${CLANG_WARNINGS}section.I haven't tried removing
-Wsign-conversionand seeing if it still catches it, but perhaps someone else can to verify this behavior. Per the spec, it should be a redundant flag.