initialize variables to avoid (faulty) compiler warnings

This commit is contained in:
Arne Morten Kvarving
2020-04-14 14:09:42 +02:00
parent 784389d228
commit f23257cbf5
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ class EndpointScaling {
if (serializer.isSerializing())
serializer(options.to_ulong());
else {
unsigned long bits;
unsigned long bits = 0;
serializer(bits);
options = std::bitset<4>(bits);
}

View File

@@ -68,7 +68,7 @@ class Phases {
if (serializer.isSerializing())
serializer(bits.to_ulong());
else {
unsigned long Bits;
unsigned long Bits = 0;
serializer(Bits);
bits = std::bitset<NUM_PHASES_IN_ENUM>(Bits);
}