From 4e0729cbd5d36fdef3718937319ff540111688a8 Mon Sep 17 00:00:00 2001
From: Kirill Yukhin <kyukhin@tarantool.org>
Date: Wed, 31 Jan 2018 15:26:57 +0300
Subject: [PATCH] Fix order of function attributes for RB tree in replication

rb_gen used incorrect order of function attributes: sttic
MAYBE_UNUSED, which caused fails while compiling w/ Clang.
Change order of mentioned attributes.
---
 src/box/replication.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/box/replication.cc b/src/box/replication.cc
index 3100b6790d..1ffdeacc61 100644
--- a/src/box/replication.cc
+++ b/src/box/replication.cc
@@ -56,7 +56,7 @@ replica_compare_by_uuid(const struct replica *a, const struct replica *b)
 	return tt_uuid_compare(&a->uuid, &b->uuid);
 }
 
-rb_gen(static MAYBE_UNUSED, replica_hash_, replica_hash_t,
+rb_gen(MAYBE_UNUSED static, replica_hash_, replica_hash_t,
        struct replica, in_hash, replica_compare_by_uuid);
 
 #define replica_hash_foreach_safe(hash, item, next) \
-- 
GitLab