Skip to content
Snippets Groups Projects
Commit f0e61dc5 authored by Markus Holzer's avatar Markus Holzer Committed by Michael Kuron
Browse files

[FIX] Warning -Wmaybe-uninitialized

parent a50adf71
Branches
Tags
No related merge requests found
......@@ -85,9 +85,9 @@ namespace communication {
T *advanceNoResize( std::size_t bytes ) { return reinterpret_cast<T *>( advanceNoResize( bytes * sizeof( T ))); }
private:
ElementType *begin_;
ElementType *cur_;
ElementType *end_;
ElementType *begin_ = nullptr;
ElementType *cur_ = nullptr;
ElementType *end_ = nullptr;
};
......
......@@ -45,6 +45,7 @@ namespace communication {
template<typename Allocator>
CustomMemoryBuffer<Allocator>::CustomMemoryBuffer( const CustomMemoryBuffer &pb )
: begin_( nullptr ), cur_( nullptr ), end_( nullptr )
{
if( pb.begin_ != nullptr )
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment