8000 compile.c: suppress warnings · willnet/ruby@a72a50b · GitHub
[go: up one dir, main page]

Skip to content

Commit a72a50b

Browse files
committed
compile.c: suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 0f8368c commit a72a50b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

compile.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9089,7 +9089,7 @@ static void
90899089
ibf_dump_object_float(struct ibf_dump *dump, VALUE obj)
90909090
{
90919091
double dbl = RFLOAT_VALUE(obj);
9092-
IBF_W(&dbl, double, 1);
9092+
(void)IBF_W(&dbl, double, 1);
90939093
}
90949094

90959095
static VALUE
@@ -9115,7 +9115,7 @@ ibf_dump_object_string(struct ibf_dump *dump, VALUE obj)
91159115

91169116
buff[0] = encindex;
91179117
buff[1] = len;
9118-
IBF_W(buff, long, 2);
9118+
(void)IBF_W(buff, long, 2);
91199119
IBF_WP(ptr, char, len);
91209120
}
91219121

@@ -9146,7 +9146,7 @@ ibf_dump_object_regexp(struct ibf_dump *dump, VALUE obj)
91469146
IBF_ZERO(regexp);
91479147
regexp.option = (char)rb_reg_options(obj);
91489148
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);
91509150
}
91519151

91529152
static VALUE
@@ -9166,7 +9166,7 @@ static void
91669166
ibf_dump_object_array(struct ibf_dump *dump, VALUE obj)
91679167
{
91689168
long i, len = (int)RARRAY_LEN(obj);
9169-
IBF_W(&len, long, 1);
9169+
(void)IBF_W(&len, long, 1);
91709170
for (i=0; i<len; i++) {
91719171
long index = (long)ibf_dump_object(dump, RARRAY_AREF(obj, i));
91729172
IBF_WV(index);
@@ -9197,15 +9197,15 @@ ibf_dump_object_hash_i(st_data_t key, st_data_t val, st_data_t ptr)
91979197
long keyval[2];
91989198
keyval[0] = (long)ibf_dump_object(dump, (VALUE)key);
91999199
keyval[1] = (long)ibf_dump_object(dump, (VALUE)val);
9200-
IBF_W(keyval, long, 2);
9200+
(void)IBF_W(keyval, long, 2);
92019201
return ST_CONTINUE;
92029202
}
92039203

92049204
static void
92059205
ibf_dump_object_hash(struct ibf_dump *dump, VALUE obj)
92069206
{
92079207
long len = RHASH_SIZE(obj);
9208-
IBF_W(&len, long, 1);
9208+
(void)IBF_W(&len, long, 1);
92099209
if (len > 0) st_foreach(RHASH(obj)->ntbl, ibf_dump_object_hash_i, (st_data_t)dump);
92109210
}
92119211

@@ -9269,7 +9269,7 @@ ibf_dump_object_bignum(struct ibf_dump *dump, VALUE obj)
92699269
ssize_t slen = BIGNUM_SIGN(obj) > 0 ? len : len * -1;
92709270
BDIGIT *d = BIGNUM_DIGITS(obj);
92719271

9272-
IBF_W(&slen, ssize_t, 1);
9272+
(void)IBF_W(&slen, ssize_t, 1);
92739273
IBF_WP(d, BDIGIT, len);
92749274
}
92759275

@@ -9296,7 +9296,7 @@ ibf_dump_object_data(struct ibf_dump *dump, VALUE obj)
92969296
long data[2];
92979297
data[0] = IBF_OBJECT_DATA_ENCODING;
92989298
data[1] = len;
9299-
IBF_W(data, long, 2);
9299+
(void)IBF_W(data, long, 2);
93009300
IBF_WP(name, char, len);
93019301
}
93029302
else {
@@ -9330,7 +9330,7 @@ ibf_dump_object_complex_rational(struct ibf_dump *dump, VALUE obj)
93309330
data[0] = (long)ibf_dump_object(dump, RCOMPLEX(obj)->real);
93319331
data[1] = (long)ibf_dump_object(dump, RCOMPLEX(obj)->imag);
93329332

9333-
IBF_W(data, long, 2);
9333+
(void)IBF_W(data, long, 2);
93349334
}
93359335

93369336
static VALUE
@@ -9352,7 +9352,7 @@ ibf_dump_object_symbol(struct ibf_dump *dump, VALUE obj)
93529352
{
93539353
VALUE str = rb_sym2str(obj);
93549354
long str_index = (long)ibf_dump_object(dump, str);
9355-
IBF_W(&str_index, long, 1);
9355+
(void)IBF_W(&str_index, long, 1);
93569356
}
93579357

93589358
static VALUE
@@ -9422,7 +9422,7 @@ ibf_dump_object_object(struct ibf_dump *dump, VALUE obj)
94229422
obj_header.frozen = TRUE;
94239423
obj_header.internal = TRUE;
94249424
IBF_WV(obj_header);
9425-
IBF_W(&obj, VALUE, 1);
9425+
(void)IBF_W(&obj, VALUE, 1);
94269426
}
94279427
else {
94289428
obj_header.internal = (RBASIC_CLASS(obj) == 0) ? TRUE : FALSE;

0 commit comments

Comments
 (0)
0