shithub: riscv

Download patch

ref: 7bd7776935eea88f322753e963bcc858d1d9ecc7
parent: ab5c4799d95e0d60ca9ebf16dede88cd245e3aaa
author: BurnZeZ <devnull@localhost>
date: Sun Feb 23 15:33:27 EST 2020

ape/cc: stop spamming arguments that are only needed once

--- a/sys/src/ape/cmd/cc.c
+++ b/sys/src/ape/cmd/cc.c
@@ -155,6 +155,7 @@
 		if(!Aflag) {
 			append(&cc, "-J");		/* old/new decl mixture hack */
 			append(&cc, "-B");		/* turn off non-prototype warnings */
+			Aflag = 1;
 		}
 		if(argc > 0) {
 			s = argv[0];