diff options
author | Sven Gothel <[email protected]> | 2021-11-01 17:50:26 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-11-01 17:50:26 +0100 |
commit | 62fd2799eec1ee9c70ab21653b6e0468efe55740 (patch) | |
tree | bd7b05e32919672ce7544b737a38d0c6ec4102bb /test/test_lfringbuffer11.cpp | |
parent | 62e5e3aaef8feda9484957d2f25dac91d1a223ae (diff) |
test_lfringbuffer11: Fix GCC 8.4 optimization warning (uninitialized var)
Diffstat (limited to 'test/test_lfringbuffer11.cpp')
-rw-r--r-- | test/test_lfringbuffer11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_lfringbuffer11.cpp b/test/test_lfringbuffer11.cpp index c41d602..694112a 100644 --- a/test/test_lfringbuffer11.cpp +++ b/test/test_lfringbuffer11.cpp @@ -74,7 +74,7 @@ class TestRingbuffer11 { // INFO_STR, INFO: Not thread safe yet // INFO_STR(msg+": Created / " + rb->toString()); for(jau::nsize_t i=0; i<len; i++) { - TrivialType svI; + TrivialType svI = 0; REQUIRE_MSG("not empty at read #"+std::to_string(i+1)+": "+rb->toString()+", elem "+std::to_string(svI), rb->getBlocking(svI)); // INFO_STR("Got "+std::to_string(svI->intValue())+" / " + rb->toString()); } |