aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@gmail.com>2023-11-30 23:30:50 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2023-12-09 01:06:28 +0000
commit6abee52e0d79f68fd725de748d7027ca8eef2294 (patch)
treefc256bcf3adfed54285306f3aa26c42902b03579
parent2a163c3649e59dd616e057994ec02092362f0ae7 (diff)
downloadsrc-6abee52e0d79f68fd725de748d7027ca8eef2294.tar.gz
src-6abee52e0d79f68fd725de748d7027ca8eef2294.zip
strfmon: Silence scan-build warning
The value stored to 'value' is never read. Reported by: Jenkins (scan-build) MFC after: 1 week
-rw-r--r--lib/libc/stdlib/strfmon.c1
1 files changed, 0 insertions, 1 deletions
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) {