summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
diff options
context:
space:
mode:
authorMalizia R <[email protected]>2016-02-24 16:39:38 -0300
committerMalizia R <[email protected]>2016-02-24 16:39:38 -0300
commit52aba8a70623391ed7996c2023aed776f6ca4541 (patch)
tree182a3f07c988c8f4eb84b08646e39788f3008b88 /src/class.c
parentb8479b62d8c9fc5e2333dcc9b2ad396fc219795a (diff)
downloadmruby-52aba8a70623391ed7996c2023aed776f6ca4541.tar.gz
mruby-52aba8a70623391ed7996c2023aed776f6ca4541.zip
Avoid Error when Compiling with -std=c99 flag
Diffstat (limited to 'src/class.c')
-rw-r--r--src/class.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/class.c b/src/class.c
index 6f762345d..0f72c7753 100644
--- a/src/class.c
+++ b/src/class.c
@@ -429,6 +429,8 @@ to_sym(mrb_state *mrb, mrb_value ss)
else {
mrb_value obj = mrb_funcall(mrb, ss, "inspect", 0);
mrb_raisef(mrb, E_TYPE_ERROR, "%S is not a symbol", obj);
+ /* not reached */
+ return 0;
}
}