Fix 'struct ceph_file_layout g_default_file_layout' related -Wgnu-designator warning from clang(++): common/config.cc:61:2: warning: use of GNU old-style field designator extension [-Wgnu-designator] Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@xxxxxxxxx> --- src/common/config.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/common/config.cc b/src/common/config.cc index 87b74ed..384c4b3 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -58,13 +58,13 @@ const char *CEPH_CONF_FILE_DEFAULT = "/etc/ceph/$cluster.conf, ~/.ceph/$cluster. // file layouts struct ceph_file_layout g_default_file_layout = { - fl_stripe_unit: init_le32(1<<22), - fl_stripe_count: init_le32(1), - fl_object_size: init_le32(1<<22), - fl_cas_hash: init_le32(0), - fl_object_stripe_unit: init_le32(0), - fl_unused: init_le32(-1), - fl_pg_pool : init_le32(-1), + .fl_stripe_unit = init_le32(1<<22), + .fl_stripe_count = init_le32(1), + .fl_object_size = init_le32(1<<22), + .fl_cas_hash = init_le32(0), + .fl_object_stripe_unit = init_le32(0), + .fl_unused = init_le32(-1), + .fl_pg_pool = init_le32(-1), }; #define _STR(x) #x -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html