summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJonas Kulla <[email protected]>2014-07-23 21:39:49 +0200
committerJonas Kulla <[email protected]>2014-07-23 21:40:15 +0200
commitec606e3aa73aa670cac9fc5b5892be46882e830e (patch)
treecc75742a8994c5a534a736f4483ef5aefec753f6
parent40e46944a285e1113f66ad0d070e7e595e7d63e4 (diff)
downloadmruby-ec606e3aa73aa670cac9fc5b5892be46882e830e.tar.gz
mruby-ec606e3aa73aa670cac9fc5b5892be46882e830e.zip
Silence "unused parameter" warnings in C++
This has been done already, but the fixes were accidentally removed in 249f05e7d70761823ef07a990276f9200e8b3302.
-rw-r--r--include/mruby/value.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index 20b6008c4..ae75f9c23 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -130,6 +130,7 @@ static inline mrb_value
mrb_float_value(struct mrb_state *mrb, mrb_float f)
{
mrb_value v;
+ (void) mrb;
SET_FLOAT_VALUE(mrb, v, f);
return v;
}
@@ -138,6 +139,7 @@ static inline mrb_value
mrb_cptr_value(struct mrb_state *mrb, void *p)
{
mrb_value v;
+ (void) mrb;
SET_CPTR_VALUE(mrb,v,p);
return v;
}