git: 9front

Download patch

ref: 0a1eacb4c2c09a7e10d8a51d640083ea8219ac8f
parent: c6b70222cdc837de9ff4734fbdd050b38b34d1b7
author: Ori Bernstein <ori@eigenstate.org>
date: Fri May 15 12:56:59 EDT 2020

#pragma ref no longer exists

It appears to be an antiquated form of 'USED(x)'

--- a/sys/src/libstdio/vfscanf.c
+++ b/sys/src/libstdio/vfscanf.c
@@ -102,8 +102,6 @@
 	return ncvt;	
 }
 static int icvt_n(FILE *f, va_list *args, int store, int width, int type){
-#pragma ref f
-#pragma ref width
 	if(store){
 		--ncvt;	/* this assignment doesn't count! */
 		switch(type){
@@ -275,7 +273,6 @@
 	return 1;
 }
 static int icvt_s(FILE *f, va_list *args, int store, int width, int type){
-#pragma ref type
 	int c, nn;
 	register char *s;
 	if(store) s=va_arg(*args, char *);
@@ -303,7 +300,6 @@
 	return 1;
 }
 static int icvt_c(FILE *f, va_list *args, int store, int width, int type){
-#pragma ref type
 	int c;
 	register char *s;
 	if(store) s=va_arg(*args, char *);
@@ -335,7 +331,6 @@
 	return !ok;
 }
 static int icvt_sq(FILE *f, va_list *args, int store, int width, int type){
-#pragma ref type
 	int c, nn;
 	register char *s;
 	register const char *pat;
--