shithub: scc

Download patch

ref: e2b1e124e7694cad72c120ae3b7eea8dbb26f4d8
parent: 4bbb4bdc3c77071fc41b04522f86bf53b25f4a28
author: Hiltjo Posthuma <hiltjo@codemadness.org>
date: Fri May 27 10:32:37 EDT 2016

cc1: abort in (potential future) unhandled case

this prevents a potential uninitialised variable ntable and ntype.

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