summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-23 15:26:06 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-23 15:26:06 -0300
commitc0b41d4eae3b6164d307ff2bc7bdee266d897dee (patch)
tree16ad1ef0cfdb29b72b448c53ab8052b517f40e1d
parent7bc3c7ba2906af060e694d0fab09b8f4f52d13e5 (diff)
downloadeeshow-c0b41d4eae3b6164d307ff2bc7bdee266d897dee.tar.gz
eeshow-c0b41d4eae3b6164d307ff2bc7bdee266d897dee.tar.bz2
eeshow-c0b41d4eae3b6164d307ff2bc7bdee266d897dee.zip
kicad/sch_render.c (sch_render): report invalid object type
-rw-r--r--kicad/sch-render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kicad/sch-render.c b/kicad/sch-render.c
index 0722efa..69faf8b 100644
--- a/kicad/sch-render.c
+++ b/kicad/sch-render.c
@@ -15,6 +15,7 @@
#include <stdio.h>
#include <assert.h>
+#include "misc/diag.h"
#include "gfx/misc.h"
#include "gfx/style.h"
#include "gfx/gfx.h"
@@ -173,5 +174,7 @@ void sch_render(const struct sheet *sheet)
case sch_obj_sheet:
render_sheet(obj, &obj->u.sheet);
break;
+ default:
+ BUG("invalid object type \"%d\"", obj->type);
}
}