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++/5509] -Wunused-parameter and tree inlining


------- Additional Comments From steven at gcc dot gnu dot org  2004-02-29 13:44 -------
It is a bit worse now: 
$ ./cc1plus -quiet -Wall -Wextra t.ii 
t.ii: In constructor `B::B(int)': 
t.ii:14: warning: unused parameter 'i' 
t.ii: In constructor `B::B(int)': 
t.ii:14: warning: unused parameter 'i' 
t.ii: In function `void baz(int)': 
t.ii:18: warning: unused parameter 'i' 
t.ii: In member function `int B::foo(int)': 
t.ii:10: warning: unused parameter 'i' 
t.ii: In member function `int A::foo(int)': 
t.ii:4: warning: unused parameter 'i' 
t.ii: In constructor `A::A(int)': 
t.ii:3: warning: unused parameter 'i' 
 
$ ./cc1plus -quiet -Wall -Wextra t.ii -O 
t.ii: In constructor `B::B(int)': 
t.ii:14: warning: unused parameter 'i' 
t.ii: In constructor `B::B(int)': 
t.ii:14: warning: unused parameter 'i' 
 
So now we have a duplicate warning on line 14. 

-- 


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


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