From nobody Mon Nov 29 15:43:13 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8D48518BCB1B; Mon, 29 Nov 2021 15:43:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2qPc5xXxz4nYc; Mon, 29 Nov 2021 15:43:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0D82325238; Mon, 29 Nov 2021 15:43:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ATFhDMR065952; Mon, 29 Nov 2021 15:43:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATFhDKx065951; Mon, 29 Nov 2021 15:43:13 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:43:13 GMT Message-Id: <202111291543.1ATFhDKx065951@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: c8a4a49d582f - main - libc/stdio/vfwscanf.c::convert_wstring(): wcp0 is write-only List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c8a4a49d582f539c73ef436ceb9d623dd9f20221 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638200597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jc/rwUBW44//CUPaahgApy1RAYorBL2XcKZO0zqV8zA=; b=DAaFDyhgs1BBN/AlpR3/N7Ozmh2O2fxRZj2/Xvneab5kHWFTcSw4DKNzoXZx74KXm1bpek yJGtLDLJ2pO5g3VdTs3WgyskMnyEp8lG71uO8NTKdnCRieQJJZfCCruqTqHeRLWXd8cHHL e8N2IT2q/AnAiSGpFWH6ROmbjdVallaXIOHJmqH+TkuOY4tT/WAiGUxPiowt10ex6zxHme 3KsyRWpqUMuUVnT6I/Pc4Ch8tBZPmG9hxZd4OjAeHZlnP7r7dCJR7CPpcvFoRHFOruFnTu C8RkpLNgNhgB/5hOJqLEdugOGGW2FG740KZXXcBNOt774ZMnJBn7/Yfounb2Ag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638200597; a=rsa-sha256; cv=none; b=Ychb8PmXi5aqGUbq++gpCPe1IGo57pTLA38xOmIl0HfZiVPdfQhvFd2AUiyChlMSDaxeaU JNkvCqG6cx1LaZgGVmYSqPtGYlIJiox0Qp8V5ypXz0zg6xGnNUFSWAdhePBW84LBSSb3HA bvaPkwoJmk5T2t9uQfisBdthmXdDL/n8zLMZ17EpgcD+tzJ8ucgHFCKYL48LVW2tsYtI1X 27ogZiG84XVyVtrTc8P1zQ5c4wGCxX2Hf5UN3jVqJzACM6bpQ2eNvv2KvtsTcng3k5Z+ke hocarvY9sT26m9FpJXflpjmhI1w4EhHIscVC+9Zdd+x91Cx4JjLaMD9T1uC2gw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c8a4a49d582f539c73ef436ceb9d623dd9f20221 commit c8a4a49d582f539c73ef436ceb9d623dd9f20221 Author: Konstantin Belousov AuthorDate: 2021-11-28 03:16:08 +0000 Commit: Konstantin Belousov CommitDate: 2021-11-29 15:39:51 +0000 libc/stdio/vfwscanf.c::convert_wstring(): wcp0 is write-only --- 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;