initialize variables to avoid (faulty) compiler warnings
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user