shithub: scc

Download patch

ref: 98fca36162887f14d76aa2a8746cec529826c079
parent: 5c7b4991a1e90baab76969d4778e8780e43d1239
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Nov 13 03:13:05 EST 2021

cc1: Remove unused parameter in expand()

--- a/src/cmd/cc/cc1/cc1.h
+++ b/src/cmd/cc/cc1/cc1.h
@@ -487,7 +487,7 @@
 /* cpp.c */
 extern void icpp(void);
 extern int cpp(void);
-extern int expand(char *begin, Symbol *sym);
+extern int expand(Symbol *);
 extern void incdir(char *dir);
 extern void outcpp(void);
 extern void defdefine(char *macro, char *val, char *source);
--- a/src/cmd/cc/cc1/cpp.c
+++ b/src/cmd/cc/cc1/cpp.c
@@ -252,7 +252,7 @@
 }
 
 int
-expand(char *begin, Symbol *sym)
+expand(Symbol *sym)
 {
 	size_t elen;
 	int n, i;