scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 2d3c0c4b70e668183723e5274e7ae01c6678a704
parent 874fa3ca5a3eba2a0849661312f85de17eeea5df
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 27 May 2016 14:32:37 +0200

cc1: abort in (potential future) unhandled case

this prevents a potential uninitialised variable ntable and ntype.

Diffstat:
Mcc1/types.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/cc1/types.c b/cc1/types.c @@ -97,6 +97,8 @@ getlimits(Type *tp) case 16: ntype = 2; break; } break; + default: + abort(); } return &limits[ntable][ntype];