shithub: scc

Download patch

ref: 57ed804790202655d6ab2ee8f2dd3a6aac75b9b5
parent: b5557403903f5e92a35ae7505ae38f345f5d29b2
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue May 26 05:48:39 EDT 2015

Remove redundant returns in cpp.c

These returns were there because in the past these functions
were bool functions, but it is a non sense now.

--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -377,7 +377,6 @@
 	for (t = s + strlen(s) + 1; isspace(*--t); *t = '\0')
 		/* nothing */;
 	sym->u.s = mkdefine(s);
-	return;
 }
 
 static void
@@ -459,7 +458,6 @@
 {
 	if (cppoff)
 		return;
-	return;
 }
 
 static void
@@ -486,8 +484,6 @@
 	sym = lookup(NS_CPP);
 	if (!(ifstatus[n] = (sym->flags & ISDEFINED) != 0 == isdef))
 		++cppoff;
-
-	return;
 }
 
 static void
@@ -510,7 +506,6 @@
 	cleanup(s);
 	if (!ifstatus[--numif])
 		--cppoff;
-	return;
 }
 
 static void