shithub: scc

Download patch

ref: 2fa380cca1dabdf44422e3d101c90103cc2f768a
parent: f2227c6d0370cfc5c2b1472475fe9564dbb05e25
author: Quentin Rameau <quinq@fifth.space>
date: Sun May 2 11:16:29 EDT 2021

cc1/expr: Return a value on error in arithmetic()

This will let the compiler continuing on building until it encounters
the maximum number of errors.

--- a/src/cmd/cc/cc1/expr.c
+++ b/src/cmd/cc/cc1/expr.c
@@ -348,6 +348,7 @@
 		}
 	}
 	errorp("incorrect arithmetic operands");
+	return lp;
 }
 
 static Node *