diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-22 14:04:10 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-22 14:04:10 +0000 |
commit | d56885b43df3b4e9e67fc4a39cbaaaea6961d5d8 (patch) | |
tree | 7fdb91f7459889e1a4b82b68069aaf1a5cace3cf /ext/syck/emitter.c | |
parent | 09a5952737052a7c4f6d3eb5f7b9963ee275da85 (diff) | |
download | ruby-d56885b43df3b4e9e67fc4a39cbaaaea6961d5d8.tar.gz |
* ext/syck/rubyext.c, ext/syck/yaml2byte.c, ext/syck/emitter.c,
ext/syck/syck.c, ext/syck/handler.c, ext/syck/syck.h: suppress GCC
warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/emitter.c')
-rw-r--r-- | ext/syck/emitter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/syck/emitter.c b/ext/syck/emitter.c index 277004d7ad..56a5592cb3 100644 --- a/ext/syck/emitter.c +++ b/ext/syck/emitter.c @@ -391,7 +391,7 @@ syck_emit( SyckEmitter *e, st_data_t n ) /* Look for anchor */ if ( e->anchors != NULL && st_lookup( e->markers, n, (st_data_t *)&oid ) && - st_lookup( e->anchors, (st_data_t)oid, (st_data_t *)&anchor_name ) ) + st_lookup( e->anchors, (st_data_t)oid, (void *)&anchor_name ) ) { if ( e->anchored == NULL ) { @@ -1217,7 +1217,7 @@ syck_emitter_mark_node( SyckEmitter *e, st_data_t n ) e->anchors = st_init_numtable(); } - if ( ! st_lookup( e->anchors, (st_data_t)oid, (st_data_t *)&anchor_name ) ) + if ( ! st_lookup( e->anchors, (st_data_t)oid, (void *)&anchor_name ) ) { int idx = 0; const char *anc = ( e->anchor_format == NULL ? DEFAULT_ANCHOR_FORMAT : e->anchor_format ); |