This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14573] New: -Wunused-parameter does not warn unused parameter in ctor
- From: "chlunde+bug at ifi dot uio dot no" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Mar 2004 20:57:37 -0000
- Subject: [Bug c++/14573] New: -Wunused-parameter does not warn unused parameter in ctor
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In the following code:
class C {
public:
C(int i) {}
void f(int j) {}
};
No warning is given about the unused `i', only `j'.
It seems to work fine in 2.95, 3.2 and 3.4.0 (debian-snapshot).
--
Summary: -Wunused-parameter does not warn unused parameter in
ctor
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: chlunde+bug at ifi dot uio dot no
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14573