diff options
author | Martin Liska <mliska@suse.cz> | 2021-10-18 09:27:10 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-10-18 10:16:46 +0200 |
commit | 724e27046bc3f1b24eb4e153f71da0ac1049127d (patch) | |
tree | de011394e2bdcb5bdb7c31cbd644f6097411c541 /gcc/gcov.c | |
parent | 017665f63047ce47b087b0b283548a60e5abf3d2 (diff) | |
download | gcc-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 'gcc/gcov.c')
-rw-r--r-- | gcc/gcov.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -843,7 +843,6 @@ get_cycles_count (line_info &linfo) Therefore, operating on a permuted order (i.e., non-sorted) only has the effect of permuting the output cycles. */ - bool loop_found = false; gcov_type count = 0; for (vector<block_info *>::iterator it = linfo.blocks.begin (); it != linfo.blocks.end (); it++) @@ -851,8 +850,7 @@ get_cycles_count (line_info &linfo) arc_vector_t path; block_vector_t blocked; vector<block_vector_t > block_lists; - loop_found |= circuit (*it, path, *it, blocked, block_lists, linfo, - count); + circuit (*it, path, *it, blocked, block_lists, linfo, count); } return count; |