From a0e6e6bac9cdadc044ffff09f9dc8c27f3406417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Fr=C3=BChwirth?= Date: Mon, 16 May 2022 11:23:52 +0200 Subject: [PATCH] Fix ConvData struct missing member initializer when using compound literal to silence compiler warnings with -Wextra (-Wmissing-field-initializers) --- src/formats/formats.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formats/formats.cc b/src/formats/formats.cc index c17c04b..6eb6197 100644 --- a/src/formats/formats.cc +++ b/src/formats/formats.cc @@ -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 }; }