From eb9b0e8af9730c3e1ef1bf4e7e21340390f4365f Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Tue, 20 Nov 2018 01:13:37 +0100 Subject: [PATCH] rgw: need to give a type in list constructor Clang complains about the missing type: /home/jenkins/workspace/ceph-master/src/rgw/rgw_sync_module_es.cc:251:42: error: no viable constructor or deduction guide for deduction of template arguments of 'initializer_list' static constexpr std::initializer_list rgw_sys_attrs = {RGW_ATTR_PG_VER, ^ /usr/include/c++/v1/initializer_list:59:28: note: candidate function template not viable: requires 1 argument, but 7 were provided Tried several type definitions, but this was the only one that make Clang happy. Signed-off-by: Willem Jan Withagen --- src/rgw/rgw_sync_module_es.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_sync_module_es.cc b/src/rgw/rgw_sync_module_es.cc index 9d6222476dd..ddbf40beae2 100644 --- a/src/rgw/rgw_sync_module_es.cc +++ b/src/rgw/rgw_sync_module_es.cc @@ -248,7 +248,8 @@ struct es_index_config { }; static bool is_sys_attr(const std::string& attr_name){ - static constexpr std::initializer_list rgw_sys_attrs = {RGW_ATTR_PG_VER, + static constexpr std::initializer_list rgw_sys_attrs = + {RGW_ATTR_PG_VER, RGW_ATTR_SOURCE_ZONE, RGW_ATTR_ID_TAG, RGW_ATTR_TEMPURL_KEY1, -- 2.39.5