From 5b49177352d6668586a4f244f6f367d632809a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Fri, 16 Feb 2018 11:04:33 +0100 Subject: [PATCH] test: Initialize some local variables GCC 7.3 complains about uninitialized varaibles in constexpr context. --- test/format-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/format-test.cc b/test/format-test.cc index d689b15f..4555e479 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -1779,7 +1779,7 @@ struct test_context { FMT_CONSTEXPR fmt::format_specs parse_specs(const char *s) { fmt::format_specs specs; - test_context ctx; + test_context ctx{}; fmt::internal::specs_handler h(specs, ctx); parse_format_specs(s, h); return specs; @@ -1805,7 +1805,7 @@ TEST(FormatTest, ConstexprSpecsHandler) { FMT_CONSTEXPR fmt::internal::dynamic_format_specs parse_dynamic_specs(const char *s) { fmt::internal::dynamic_format_specs specs; - test_context ctx; + test_context ctx{}; fmt::internal::dynamic_specs_handler h(specs, ctx); parse_format_specs(s, h); return specs;