Fix ConvData struct missing member initializer when using compound literal to silence compiler warnings with -Wextra (-Wmissing-field-initializers)

This commit is contained in:
Adrian Frühwirth 2022-05-16 11:23:52 +02:00
parent c4dec1cd15
commit a0e6e6bac9
1 changed files with 2 additions and 2 deletions

View File

@ -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 };
}