From: Turo Lamminen Date: Mon, 18 Sep 2017 11:59:55 +0000 (+0300) Subject: FIReader: Silence uninitialized variable warning X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4652be8f18842cf3dc2cbcac1b3e8bd21115a2e4;p=platform%2Fupstream%2Fassimp.git FIReader: Silence uninitialized variable warning This is a false positive. First time through the loop 'imod3' is always 0 so c1 is not used. It's also set so further iterations have a valid 'c1'. If 'value' is empty the switch doesn't look at 'c1' either since 'imod3' is still 0. --- diff --git a/code/FIReader.cpp b/code/FIReader.cpp index 981d0b9..95b22a1 100755 --- a/code/FIReader.cpp +++ b/code/FIReader.cpp @@ -168,7 +168,7 @@ struct FIBase64ValueImpl: public FIBase64Value { if (!strValueValid) { strValueValid = true; std::ostringstream os; - uint8_t c1, c2; + uint8_t c1 = 0, c2; int imod3 = 0; std::vector::size_type valueSize = value.size(); for (std::vector::size_type i = 0; i < valueSize; ++i) {