@@ -488,7 +488,7 @@ static VALUE rb_mysql_client_async_result(VALUE self) {
488
488
}
489
489
490
490
current = rb_hash_dup (rb_iv_get (self , "@current_query_options" ));
491
- RB_GC_GUARD (current );
491
+ ( void ) RB_GC_GUARD (current );
492
492
Check_Type (current , T_HASH );
493
493
resultObj = rb_mysql_result_to_obj (self , wrapper -> encoding , current , result , NULL );
494
494
@@ -602,7 +602,7 @@ void rb_mysql_client_set_active_thread(VALUE self) {
602
602
const char * thr = StringValueCStr (inspect );
603
603
604
604
rb_raise (cMysql2Error , "This connection is in use by: %s" , thr );
605
- RB_GC_GUARD (inspect );
605
+ ( void ) RB_GC_GUARD (inspect );
606
606
}
607
607
}
608
608
@@ -652,7 +652,7 @@ static VALUE rb_query(VALUE self, VALUE sql, VALUE current) {
652
652
REQUIRE_CONNECTED (wrapper );
653
653
args .mysql = wrapper -> client ;
654
654
655
- RB_GC_GUARD (current );
655
+ ( void ) RB_GC_GUARD (current );
656
656
Check_Type (current , T_HASH );
657
657
rb_iv_set (self , "@current_query_options" , current );
658
658
@@ -1059,7 +1059,7 @@ static VALUE rb_mysql_client_store_result(VALUE self)
1059
1059
}
1060
1060
1061
1061
current = rb_hash_dup (rb_iv_get (self , "@current_query_options" ));
1062
- RB_GC_GUARD (current );
1062
+ ( void ) RB_GC_GUARD (current );
1063
1063
Check_Type (current , T_HASH );
1064
1064
resultObj = rb_mysql_result_to_obj (self , wrapper -> encoding , current , result , NULL );
1065
1065
0 commit comments