Fixed false positive 'unusedVar' with C++11 initialization (#6160)