shithub: riscv

Download patch

ref: bd4b6bda9b93c2c29eb0cb52b2a1c09fd02028a9
parent: 78aec6d5c67cab79e03cdbe4f1a1bd7a7aa15612
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;