mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 17:33:19 +01:00
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:
parent
c444f9b917
commit
efbba0f439
2
vendor/github.com/google/googletest/googletest/cmake/internal_utils.cmake
generated
vendored
2
vendor/github.com/google/googletest/googletest/cmake/internal_utils.cmake
generated
vendored
@ -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_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")
|
set(cxx_no_rtti_flags "-fno-rtti")
|
||||||
elseif (CMAKE_COMPILER_IS_GNUCXX)
|
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)
|
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0.0)
|
||||||
set(cxx_base_flags "${cxx_base_flags} -Wno-error=dangling-else")
|
set(cxx_base_flags "${cxx_base_flags} -Wno-error=dangling-else")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user