summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-27 07:13:43 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-27 07:13:43 +0000
commit7175a9073ea23abe565f606aa042ea015c7340b9 (patch)
treee45b4a7e274129e45db816f414ae7a4a797b95b1 /dir.c
parent9cce6d1071c3d84d07db891fab781620a287a9fe (diff)
* class.c, compile.c, dir.c, file.c, iseq.c, parse.y, random.c:
clean unused-value warnings. * cont.c, process.c, vm_exec.h: clean cast warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index 8ebd1de116..14317a4ba2 100644
--- a/dir.c
+++ b/dir.c
@@ -352,8 +352,8 @@ static VALUE dir_close(VALUE);
#define GlobPathValue(str, safe) \
/* can contain null bytes as separators */ \
(!RB_TYPE_P(str, T_STRING) ? \
- FilePathValue(str) : \
- (check_safe_glob(str, safe), \
+ (void)FilePathValue(str) : \
+ (void)(check_safe_glob(str, safe), \
check_glob_encoding(str), (str)))
#define check_safe_glob(str, safe) ((safe) ? rb_check_safe_obj(str) : (void)0)
#define check_glob_encoding(str) rb_enc_check((str), rb_enc_from_encoding(rb_usascii_encoding()))