@@ -9089,7 +9089,7 @@ static void
9089
9089
ibf_dump_object_float (struct ibf_dump * dump , VALUE obj )
9090
9090
{
9091
9091
double dbl = RFLOAT_VALUE (obj );
9092
- IBF_W (& dbl , double , 1 );
9092
+ ( void ) IBF_W (& dbl , double , 1 );
9093
9093
}
9094
9094
9095
9095
static VALUE
@@ -9115,7 +9115,7 @@ ibf_dump_object_string(struct ibf_dump *dump, VALUE obj)
9115
9115
9116
9116
buff [0 ] = encindex ;
9117
9117
buff [1 ] = len ;
9118
- IBF_W (buff , long , 2 );
9118
+ ( void ) IBF_W (buff , long , 2 );
9119
9119
IBF_WP (ptr , char , len );
9120
9120
}
9121
9121
@@ -9146,7 +9146,7 @@ ibf_dump_object_regexp(struct ibf_dump *dump, VALUE obj)
9146
9146
IBF_ZERO (regexp );
9147
9147
regexp .option = (char )rb_reg_options (obj );
9148
9148
regexp .srcstr = (long )ibf_dump_object (dump , srcstr );
9149
- IBF_W (& regexp , struct ibf_object_regexp , 1 );
9149
+ ( void ) IBF_W (& regexp , struct ibf_object_regexp , 1 );
9150
9150
}
9151
9151
9152
9152
static VALUE
@@ -9166,7 +9166,7 @@ static void
9166
9166
ibf_dump_object_array (struct ibf_dump * dump , VALUE obj )
9167
9167
{
9168
9168
long i , len = (int )RARRAY_LEN (obj );
9169
- IBF_W (& len , long , 1 );
9169
+ ( void ) IBF_W (& len , long , 1 );
9170
9170
for (i = 0 ; i < len ; i ++ ) {
9171
9171
long index = (long )ibf_dump_object (dump , RARRAY_AREF (obj , i ));
9172
9172
IBF_WV (index );
@@ -9197,15 +9197,15 @@ ibf_dump_object_hash_i(st_data_t key, st_data_t val, st_data_t ptr)
9197
9197
long keyval [2 ];
9198
9198
keyval [0 ] = (long )ibf_dump_object (dump , (VALUE )key );
9199
9199
keyval [1 ] = (long )ibf_dump_object (dump , (VALUE )val );
9200
- IBF_W (keyval , long , 2 );
9200
+ ( void ) IBF_W (keyval , long , 2 );
9201
9201
return ST_CONTINUE ;
9202
9202
}
9203
9203
9204
9204
static void
9205
9205
ibf_dump_object_hash (struct ibf_dump * dump , VALUE obj )
9206
9206
{
9207
9207
long len = RHASH_SIZE (obj );
9208
- IBF_W (& len , long , 1 );
9208
+ ( void ) IBF_W (& len , long , 1 );
9209
9209
if (len > 0 ) st_foreach (RHASH (obj )-> ntbl , ibf_dump_object_hash_i , (st_data_t )dump );
9210
9210
}
9211
9211
@@ -9269,7 +9269,7 @@ ibf_dump_object_bignum(struct ibf_dump *dump, VALUE obj)
9269
9269
ssize_t slen = BIGNUM_SIGN (obj ) > 0 ? len : len * -1 ;
9270
9270
BDIGIT * d = BIGNUM_DIGITS (obj );
9271
9271
9272
- IBF_W (& slen , ssize_t , 1 );
9272
+ ( void ) IBF_W (& slen , ssize_t , 1 );
9273
9273
IBF_WP (d , BDIGIT , len );
9274
9274
}
9275
9275
@@ -9296,7 +9296,7 @@ ibf_dump_object_data(struct ibf_dump *dump, VALUE obj)
9296
9296
long data [2 ];
9297
9297
data [0 ] = IBF_OBJECT_DATA_ENCODING ;
9298
9298
data [1 ] = len ;
9299
- IBF_W (data , long , 2 );
9299
+ ( void ) IBF_W (data , long , 2 );
9300
9300
IBF_WP (name , char , len );
9301
9301
}
9302
9302
else {
@@ -9330,7 +9330,7 @@ ibf_dump_object_complex_rational(struct ibf_dump *dump, VALUE obj)
9330
9330
data [0 ] = (long )ibf_dump_object (dump , RCOMPLEX (obj )-> real );
9331
9331
data [1 ] = (long )ibf_dump_object (dump , RCOMPLEX (obj )-> imag );
9332
9332
9333
- IBF_W (data , long , 2 );
9333
+ ( void ) IBF_W (data , long , 2 );
9334
9334
}
9335
9335
9336
9336
static VALUE
@@ -9352,7 +9352,7 @@ ibf_dump_object_symbol(struct ibf_dump *dump, VALUE obj)
9352
9352
{
9353
9353
VALUE str = rb_sym2str (obj );
9354
9354
long str_index = (long )ibf_dump_object (dump , str );
9355
- IBF_W (& str_index , long , 1 );
9355
+ ( void ) IBF_W (& str_index , long , 1 );
9356
9356
}
9357
9357
9358
9358
static VALUE
@@ -9422,7 +9422,7 @@ ibf_dump_object_object(struct ibf_dump *dump, VALUE obj)
9422
9422
obj_header .frozen = TRUE;
9423
9423
obj_header .internal = TRUE;
9424
9424
IBF_WV (obj_header );
9425
- IBF_W (& obj , VALUE , 1 );
9425
+ ( void ) IBF_W (& obj , VALUE , 1 );
9426
9426
}
9427
9427
else {
9428
9428
obj_header .internal = (RBASIC_CLASS (obj ) == 0 ) ? TRUE : FALSE;
0 commit comments