diff --git a/src/box/replication.cc b/src/box/replication.cc
index 3100b6790d1bfb4beec2bf40e9fd3e9108b01694..1ffdeacc615a3ce9eaf21ef7ee3c88da50a99404 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) \