aboutsummaryrefslogtreecommitdiff
path: root/libcpp/charset.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-10-18 09:27:10 +0200
committerMartin Liska <mliska@suse.cz>2021-10-18 10:16:46 +0200
commit724e27046bc3f1b24eb4e153f71da0ac1049127d (patch)
treede011394e2bdcb5bdb7c31cbd644f6097411c541 /libcpp/charset.c
parent017665f63047ce47b087b0b283548a60e5abf3d2 (diff)
downloadgcc-724e27046bc3f1b24eb4e153f71da0ac1049127d.zip
gcc-724e27046bc3f1b24eb4e153f71da0ac1049127d.tar.gz
gcc-724e27046bc3f1b24eb4e153f71da0ac1049127d.tar.bz2
Remove unused but set variables.
Reported by clang13 -Wunused-but-set-variable: gcc/ChangeLog: * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable. * gcov.c (get_cycles_count): Likewise. * lto-compress.c (lto_compression_zlib): Likewise. (lto_uncompression_zlib): Likewise. * targhooks.c (default_pch_valid_p): Likewise. libcpp/ChangeLog: * charset.c (convert_oct): Remove unused but set variable.
Diffstat (limited to 'libcpp/charset.c')
-rw-r--r--libcpp/charset.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libcpp/charset.c b/libcpp/charset.c
index b84a974..e4e45f6 100644
--- a/libcpp/charset.c
+++ b/libcpp/charset.c
@@ -1464,7 +1464,6 @@ convert_oct (cpp_reader *pfile, const uchar *from, const uchar *limit,
cppchar_t c, n = 0;
size_t width = cvt.width;
size_t mask = width_to_mask (width);
- bool overflow = false;
/* loc_reader and ranges must either be both NULL, or both be non-NULL. */
gcc_assert ((loc_reader != NULL) == (ranges != NULL));
@@ -1477,7 +1476,6 @@ convert_oct (cpp_reader *pfile, const uchar *from, const uchar *limit,
from++;
if (loc_reader)
char_range.m_finish = loc_reader->get_next ().m_finish;
- overflow |= n ^ (n << 3 >> 3);
n = (n << 3) + c - '0';
}