shithub: scc

Download patch

ref: 7bf478df16373b91bbfe2881c1008ec3e174c708
parent: 50340afa8a166091644dc72230dabff7a132ac11
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Jan 11 17:10:49 EST 2016

Simplify conditional in ansifun()

--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -243,9 +243,8 @@
 	int toomany = 0, toovoid = 0;
 
 	do {
-		if (n == -1) {
-			if (!toovoid)
-				errorp("'void' must be the only parameter");
+		if (n == -1 && !toovoid) {
+			errorp("'void' must be the only parameter");
 			toovoid = 1;
 		}
 		if (accept(ELLIPSIS)) {