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] New: -Wunused-parameter does not warn unused parameter in ctor


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


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