Skip to content

Commit 77e9e3f

Browse files
committed
Fix compilation under RBX
1 parent cc3797e commit 77e9e3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/mysql2/client.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ static VALUE rb_mysql_client_async_result(VALUE self) {
488488
}
489489

490490
current = rb_hash_dup(rb_iv_get(self, "@current_query_options"));
491-
RB_GC_GUARD(current);
491+
(void)RB_GC_GUARD(current);
492492
Check_Type(current, T_HASH);
493493
resultObj = rb_mysql_result_to_obj(self, wrapper->encoding, current, result, NULL);
494494

@@ -602,7 +602,7 @@ void rb_mysql_client_set_active_thread(VALUE self) {
602602
const char *thr = StringValueCStr(inspect);
603603

604604
rb_raise(cMysql2Error, "This connection is in use by: %s", thr);
605-
RB_GC_GUARD(inspect);
605+
(void)RB_GC_GUARD(inspect);
606606
}
607607
}
608608

@@ -652,7 +652,7 @@ static VALUE rb_query(VALUE self, VALUE sql, VALUE current) {
652652
REQUIRE_CONNECTED(wrapper);
653653
args.mysql = wrapper->client;
654654

655-
RB_GC_GUARD(current);
655+
(void)RB_GC_GUARD(current);
656656
Check_Type(current, T_HASH);
657657
rb_iv_set(self, "@current_query_options", current);
658658

@@ -1059,7 +1059,7 @@ static VALUE rb_mysql_client_store_result(VALUE self)
10591059
}
10601060

10611061
current = rb_hash_dup(rb_iv_get(self, "@current_query_options"));
1062-
RB_GC_GUARD(current);
1062+
(void)RB_GC_GUARD(current);
10631063
Check_Type(current, T_HASH);
10641064
resultObj = rb_mysql_result_to_obj(self, wrapper->encoding, current, result, NULL);
10651065

0 commit comments

Comments
 (0)