Don't error on uninitialized warning

The build fails because a var isn't initialized.  I could pacify the
warning but... I don't actually know that that code does and I'm not
sure what to init to.  Zero?  Probably, but who knows.  So instead, we
can warn but not error here.
This commit is contained in:
James Vasile 2022-03-18 21:48:25 -04:00
parent c444f9b917
commit efbba0f439

View File

@ -88,7 +88,7 @@ macro(config_compiler_and_linker)
set(cxx_strict_flags "-W -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wredundant-decls")
set(cxx_no_rtti_flags "-fno-rtti")
elseif (CMAKE_COMPILER_IS_GNUCXX)
set(cxx_base_flags "-Wall -Wshadow -Werror")
set(cxx_base_flags "-Wall -Wshadow -Werror -Wno-error=maybe-uninitialized -Wconversion")
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0.0)
set(cxx_base_flags "${cxx_base_flags} -Wno-error=dangling-else")
endif()