mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 12:40:04 +00:00
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]; ^ ~~~~~~~~
This commit is contained in:
parent
7501597813
commit
72bda2bd10
@ -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…
x
Reference in New Issue
Block a user