From 20d89b69dbaf1e753c385a036f40e2bf3cc35662 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 20 Feb 2023 20:19:59 +0200 Subject: [PATCH] Add missing initializers to avoid warnings from GCC 4.x --- test/serialization_nvp_test.cpp | 2 +- test/serialization_split_free_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/serialization_nvp_test.cpp b/test/serialization_nvp_test.cpp index cc73d20..0eee020 100644 --- a/test/serialization_nvp_test.cpp +++ b/test/serialization_nvp_test.cpp @@ -34,7 +34,7 @@ int main() std::string s = os.str(); - X x2 = {}; + X x2 = { 0, 0 }; { std::istringstream is( s ); diff --git a/test/serialization_split_free_test.cpp b/test/serialization_split_free_test.cpp index 20fddab..cead4ad 100644 --- a/test/serialization_split_free_test.cpp +++ b/test/serialization_split_free_test.cpp @@ -45,7 +45,7 @@ int main() std::string s = os.str(); - X x2 = {}; + X x2 = { 0, 0 }; { std::istringstream is( s );