This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25567] New: 4 * set but never used
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Dec 2005 14:46:25 -0000
- Subject: [Bug c/25567] New: 4 * set but never used
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I just tried to compile the gcc-4.2 snapshot 20051224 with the Intel C
compiler. It said
1.
../../src/gcc-4.2-20051224/gcc/c-decl.c(4486): remark #593: variable
"type_as_written" was set but
never used
The source code is
tree type_as_written;
I have read the source code, and I agree with the compiler.
The local variable is only ever written to. Suggest delete local variable.
2.
../../src/gcc-4.2-20051224/gcc/tree-cfg.c(3083): remark #593: variable "src"
was set but never used
The source code is
basic_block new_bb, after_bb, dest, src;
More of the same.
3.
../../src/gcc-4.2-20051224/gcc/tree-outof-ssa.c(1843): remark #593: variable
"changed" was set but
never used
The source code is
bool changed;
More of the same.
4.
../../src/gcc-4.2-20051224/gcc/tree-ssa-copy.c(352): remark #593: variable
"lhs" was set but never
used
The source code is
tree lhs, rhs;
More of the same.
--
Summary: 4 * set but never used
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: x86_64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25567