From bd4b6bda9b93c2c29eb0cb52b2a1c09fd02028a9 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Fri, 15 May 2020 16:56:59 -0700 Subject: [PATCH] #pragma ref no longer exists It appears to be an antiquated form of 'USED(x)' --- sys/src/libstdio/vfscanf.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/src/libstdio/vfscanf.c b/sys/src/libstdio/vfscanf.c index be5c71284..e21eca97b 100644 --- a/sys/src/libstdio/vfscanf.c +++ b/sys/src/libstdio/vfscanf.c @@ -102,8 +102,6 @@ int vfscanf(FILE *f, const char *s, va_list args){ 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 @@ Done: 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 @@ Done: 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 @@ static int match(int c, const char *pat){ 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;