commit 2d3c0c4b70e668183723e5274e7ae01c6678a704
Author: Hiltjo Posthuma <[email protected]>
AuthorDate: Fri May 27 14:32:37 2016 +0200
Commit: Hiltjo Posthuma <[email protected]>
CommitDate: Fri May 27 14:32:37 2016 +0200
cc1: abort in (potential future) unhandled case
this prevents a potential uninitialised variable ntable and ntype.
diff --git a/cc1/types.c b/cc1/types.c
index 68990c6..72d5fa8 100644
--- 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];