From e8a50410a5a20d8437c37f82872b8b6cf2633004 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Thu, 9 Jan 2014 00:42:23 +0900 Subject: [PATCH] suppress unreachable warnings --- src/var.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/var.c b/src/var.c index d3d0401d..e2cf9832 100644 --- a/src/var.c +++ b/src/var.c @@ -1,5 +1,9 @@ #include "picrin/var.h" +#include + +#define UNREACHABLE (assert(false)) + struct pic_var * pic_var_new(pic_state *pic, pic_value init, struct pic_proc *conv) { @@ -59,6 +63,7 @@ var_call(pic_state *pic) else { pic_abort(pic, "logic flaw"); } + UNREACHABLE; } static pic_value @@ -98,6 +103,7 @@ get_var_from_proc(pic_state *pic, struct pic_proc *proc) typeerror: pic_error(pic, "expected parameter"); + UNREACHABLE; } static pic_value