shithub: scc

Download patch

ref: 5182ec4cbc4178dc5a7eba8ef21b210a6977c0cb
parent: 919f683654be6fe0e0a7b19adc144d3a84f089b2
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Apr 24 04:33:40 EDT 2014

Remove unneeded code from compound()

A compound statement is a a statement, so it is already checked in
stmt(), so it has not to be checked in compound().

--- a/stmt.c
+++ b/stmt.c
@@ -85,9 +85,6 @@
 		case '}':
 			next();
 			return;
-		case '{':
-			compound(lbreak, lcont, lswitch);
-			break;
 		case TYPE: case SCLASS: case TQUALIFIER:
 			decl();
 			break;