From 9a85e8210b96b092e6d72db5ba6e30cc1deaea9e Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Mon, 9 Nov 2009 02:27:38 -0500 Subject: [PATCH] Although the value stored to 'v' is used in the enclosing expression, the value is never actually read from 'v' Found by Clang Static Analyzer. SVN-Revision: 1623 --- libarchive/archive_write_set_format_cpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/archive_write_set_format_cpio.c b/libarchive/archive_write_set_format_cpio.c index 4457496d1..4becb21cf 100644 --- a/libarchive/archive_write_set_format_cpio.c +++ b/libarchive/archive_write_set_format_cpio.c @@ -222,7 +222,7 @@ format_octal_recursive(int64_t v, char *p, int s) return (v); v = format_octal_recursive(v, p+1, s-1); *p = '0' + (v & 7); - return (v >>= 3); + return (v >> 3); } static int -- 2.47.3