Date: Sat, 9 Dec 2023 01:13:10 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 6abee52e0d79 - main - strfmon: Silence scan-build warning Message-ID: <202312090113.3B91DAQg041348@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6abee52e0d79f68fd725de748d7027ca8eef2294 commit 6abee52e0d79f68fd725de748d7027ca8eef2294 Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2023-11-30 23:30:50 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-12-09 01:06:28 +0000 strfmon: Silence scan-build warning The value stored to 'value' is never read. Reported by: Jenkins (scan-build) MFC after: 1 week --- lib/libc/stdlib/strfmon.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/libc/stdlib/strfmon.c b/lib/libc/stdlib/strfmon.c index b2d76fbed769..ade1deaffca9 100644 --- a/lib/libc/stdlib/strfmon.c +++ b/lib/libc/stdlib/strfmon.c @@ -156,7 +156,6 @@ vstrfmon_l(char * __restrict s, size_t maxsize, locale_t loc, left_prec = -1; /* no left precision specified */ right_prec = -1; /* no right precision specified */ width = -1; /* no width specified */ - value = 0; /* we have no value to print now */ /* Flags */ while (1) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312090113.3B91DAQg041348>