This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14573] [3.3 Regression] -Wunused-parameter does not warn unused parameter in ctor


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-14 21:08 -------
I have not tested a newer 3.3.x yet.
Here is the corrected testcase which should warn about i also but only warns about j:
class C {
public:
  C(int i) {}
  void f(int j) {}
};
C c(0);
void t()
{
  c.f(0);
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
      Known to fail|                            |3.0.4 3.3.1 3.2.3 3.2.2
      Known to work|                            |2.95.3 3.4.0 3.5.0
            Summary|-Wunused-parameter does not |[3.3 Regression] -Wunused-
                   |warn unused parameter in    |parameter does not warn
                   |ctor                        |unused parameter in ctor
   Target Milestone|---                         |3.3.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14573


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]