mirror of
https://github.com/ParksProjets/Maconv.git
synced 2024-09-27 16:56:27 +00:00
Fix ConvData struct missing member initializer when using compound literal to silence compiler warnings with -Wextra (-Wmissing-field-initializers)
This commit is contained in:
parent
c4dec1cd15
commit
a0e6e6bac9
@ -34,7 +34,7 @@ namespace maconv {
|
||||
|
||||
|
||||
// Prefered conversion format.
|
||||
ConvData prefered_conv = { ConvData::NotFound };
|
||||
ConvData prefered_conv = { ConvData::NotFound, NULL };
|
||||
|
||||
|
||||
// All available converters.
|
||||
@ -69,7 +69,7 @@ ConvData GetConverter(const std::string &name)
|
||||
return ConvData { ConvData::Double, &format };
|
||||
}
|
||||
|
||||
return ConvData { ConvData::NotFound };
|
||||
return ConvData { ConvData::NotFound, NULL };
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user