apparently suppurious maybe-uninitialized warnings from gcc on one config on ubuntu 1810

Description

Compiling {StroikaRoot}Library/Sources/Stroika/Foundation/DataExchange/Archive/7z/Reader.cpp ...
Compiling {StroikaRoot}Library/Sources/Stroika/Foundation/DataExchange/StructuredStreamEvents/IConsumer.cpp ...
In file included from ../Containers/Mapping.h:577,
from Atom.cpp:7:
../Containers/Mapping.inl: In static member function 'static Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::optional<long int>; _Functor = Stroika::Foundation::Containers::Mapping<KEY_TYPE, MAPPED_VALUE_TYPE>::_IRep::_Values_Reference_Implementation() const::MyIterable::MyIterableRep_::MakeIterator(Stroika::Foundation::Traversal::IteratorOwnerID) const [with KEY_TYPE = Stroika::Foundation::Characters::String; MAPPED_VALUE_TYPE = long int]::<lambda()>; _ArgTypes = {}]':
../Containers/Mapping.inl:525:65: warning: '<anonymous>' may be used uninitialized in this function [-Wmaybe-uninitialized]
return optional<MAPPED_VALUE_TYPE> ();
^
....

Compiling {StroikaRoot}Library/Sources/Stroika/Foundation/DataExchange/Archive/7z/Reader.cpp ...
Compiling {StroikaRoot}Library/Sources/Stroika/Foundation/DataExchange/StructuredStreamEvents/IConsumer.cpp ...
In file included from ../Containers/Mapping.h:577,
from Atom.cpp:7:
../Containers/Mapping.inl: In static member function 'static Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::optional<long int>; _Functor = Stroika::Foundation::Containers::Mapping<KEY_TYPE, MAPPED_VALUE_TYPE>::_IRep::_Values_Reference_Implementation() const::MyIterable::MyIterableRep_::MakeIterator(Stroika::Foundation::Traversal::IteratorOwnerID) const [with KEY_TYPE = Stroika::Foundation::Characters::String; MAPPED_VALUE_TYPE = long int]::<lambda()>; _ArgTypes = {}]':
../Containers/Mapping.inl:525:65: warning: '<anonymous>' may be used uninitialized in this function [-Wmaybe-uninitialized]
return optional<MAPPED_VALUE_TYPE> ();
^
...

Compiling {StroikaRoot}Library/Sources/Stroika/Foundation/IO/Network/InternetAddress.cpp ...
FileInputStream.cpp: In member function 'std::optional<long unsigned int> Stroika::Foundation::Streams::InternallySyncrhonizedInputStream<ELEMENT_TYPE, BASE_CLASS, BASE_REP_TYPE>::Rep_::ReadNonBlocking(ELEMENT_TYPE*, ELEMENT_TYPE*) [with ELEMENT_TYPE = std::byte; BASE_CLASS = Stroika::Foundation::IO::FileSystem::FileInputStream; BASE_REP_TYPE = Stroika::Foundation::IO::FileSystem::FileInputStream::Rep_]':
FileInputStream.cpp:171:21: warning: '<anonymous>' may be used uninitialized in this function [-Wmaybe-uninitialized]
return {}; // if no data available, return {}
^
Compiling {StroikaRoot}Library/Sources/Stroika/Foundation/IO/FileSystem/MemoryMappedFileReader.cpp ...
Compiling {StroikaRoot}Library/Sources/Stroika/Foundation/IO/Network/InternetAddressRange.cpp ...

Environment

None

Status

Assignee

Lewis Pringle

Reporter

Lewis Pringle

Labels

None

Components

Priority

Lowest
Configure