summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 37c9c47588..9c94e7f555 100644
--- a/file.c
+++ b/file.c
@@ -3119,7 +3119,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
#define check_expand_path_args(fname, dname) \
((fname = rb_get_path(fname)), \
- (NIL_P(dname) ? dname : (dname = rb_get_path(dname))))
+ (void)(NIL_P(dname) ? dname : (dname = rb_get_path(dname))))
static VALUE
file_expand_path_1(VALUE fname)