The branch stable/13 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=f19aa58ee6b9c085608f85918cbddf2c3977291e

commit f19aa58ee6b9c085608f85918cbddf2c3977291e
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2021-11-28 03:16:08 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2021-12-06 00:23:45 +0000

    libc/stdio/vfwscanf.c::convert_wstring(): wcp0 is write-only
    
    (cherry picked from commit c8a4a49d582f539c73ef436ceb9d623dd9f20221)
---
 lib/libc/stdio/vfwscanf.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/libc/stdio/vfwscanf.c b/lib/libc/stdio/vfwscanf.c
index fbd3a8ad747a..34488912171a 100644
--- a/lib/libc/stdio/vfwscanf.c
+++ b/lib/libc/stdio/vfwscanf.c
@@ -268,7 +268,6 @@ convert_string(FILE *fp, char * mbp, int width, locale_t 
locale)
 static __inline int
 convert_wstring(FILE *fp, wchar_t *wcp, int width, locale_t locale)
 {
-       wchar_t *wcp0;
        wint_t wi;
        int nread;
 
@@ -280,7 +279,6 @@ convert_wstring(FILE *fp, wchar_t *wcp, int width, locale_t 
locale)
                if (wi != WEOF)
                        __ungetwc(wi, fp, locale);
        } else {
-               wcp0 = wcp;
                while ((wi = __fgetwc(fp, locale)) != WEOF &&
                    width-- != 0 && !iswspace(wi)) {
                        *wcp++ = (wchar_t)wi;

Reply via email to