mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enc/trans/utf_16_32.c (fun_so_to_utf_16be, fun_so_to_utf_16le): add
parentheses to remove warnings of gcc. * io.c (rb_io_getc): remove unused variables. * compile.c (NODE_NEXT, NODE_REDO): remove unused labels. * ext/nkf/nkf.c (rb_nkf_convert): remove unused variables. * ext/syck/rubyext.c (syck_resolver_initialize, syck_resolver_detect_implicit, syck_emitter_emit): remove unused variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f4fb0981d
commit
0a2053713b
7 changed files with 20 additions and 14 deletions
|
@ -759,6 +759,8 @@ x = __ENCODING__
|
|||
end
|
||||
|
||||
def test_void_expr_stmts_value
|
||||
# This test checks if void contexts are warned correctly.
|
||||
# Thus, warnings MUST NOT be suppressed.
|
||||
$VERBOSE = true
|
||||
x = 1
|
||||
assert_nil eval("x; nil")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue