Avoid redundant initialization

components/nifbullet/bulletnifloader.cpp:79:24: warning: Value stored to 'a' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
        unsigned short a = strip[0], b = strip[0], c = strip[1];
                       ^   ~~~~~~~~
LTO-timing^2
elsid 3 years ago
parent 7501597813
commit 72bda2bd10
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -76,7 +76,9 @@ void fillTriangleMesh(btTriangleMesh& mesh, const Nif::NiTriStripsData& data, co
if (strip.size() < 3)
continue;
unsigned short a = strip[0], b = strip[0], c = strip[1];
unsigned short a;
unsigned short b = strip[0];
unsigned short c = strip[1];
for (size_t i = 2; i < strip.size(); i++)
{
a = b;

Loading…
Cancel
Save