[hackers] [scc] Simplify conditional in ansifun() || Roberto E. Vargas Caballero
commit 7bf478df16373b91bbfe2881c1008ec3e174c708
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Jan 11 22:10:49 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Jan 11 22:10:49 2016 +0100
Simplify conditional in ansifun()
diff --git a/cc1/decl.c b/cc1/decl.c
index 2858c9d..7032733 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -243,9 +243,8 @@ ansifun(Type *tp, Type *types[], Symbol *syms[], int *ntypes, int *nsyms)
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)) {
Received on Wed Jan 13 2016 - 09:07:05 CET
This archive was generated by hypermail 2.3.0
: Wed Jan 13 2016 - 09:12:15 CET