From 5ee897275fb570674972b5adbf7bd7d40eafbf00 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 13 Feb 2019 11:47:05 +0530 Subject: [PATCH] Fix build failing with make Issue: Error while building with make: array must be initialized with a brace enclosed initializer Fix: Enclosing array initialisation with proper braces. --- src/shrpx_api_downstream_connection.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shrpx_api_downstream_connection.cc b/src/shrpx_api_downstream_connection.cc index 063eed70..426ddf1c 100644 --- a/src/shrpx_api_downstream_connection.cc +++ b/src/shrpx_api_downstream_connection.cc @@ -41,7 +41,7 @@ namespace shrpx { namespace { // List of API endpoints const std::array &apis() { - static const auto apis = new std::array{ + static const auto apis = new std::array{{ APIEndpoint{ StringRef::from_lit("/api/v1beta1/backendconfig"), true, @@ -54,7 +54,7 @@ const std::array &apis() { (1 << API_METHOD_GET), &APIDownstreamConnection::handle_configrevision, }, - }; + }}; return *apis; }