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]

c++/9848: missing 'unused parameter' warning.


>Number:         9848
>Category:       c++
>Synopsis:       missing 'unused parameter' warning.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 25 14:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Yotam Medini
>Release:        3.2
>Organization:
>Environment:
Gnu/Linux/Mandrake9.0
>Description:
This warning works nicely on 2.96

mtlsv61:27> g++ --version; g++ -c -Wunused-parameter unused.cpp 
2.96
unused.cpp: In method `C::C (int, int)':
unused.cpp:9: warning: unused parameter `int bi'

mtls47:1163> g++ --version; g++ -c -Wunused-parameter unused.cpp 
g++ (GCC) 3.2 (Mandrake Linux 9.0 3.2-1mdk)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mtls47:1164> 
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="unused.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="unused.cpp"

c3RydWN0IEIgewogICBCKGludCBiaSA9IDApIDogX2JpKGJpKSB7fQogICBpbnQgX2JpOwp9OyAv
LyBCCgppbnQgZHVtOwoKc3RydWN0IEMgOiBwdWJsaWMgQiB7CiAgQyhpbnQgYmksIGludCBjaSkg
OiAKICAgICAvLyBCKGJpKSwgICBmb3JnZXR0aW5nLi4uLgogICAgIF9jaShjaSkKICAgICB7fQog
IGludCBfY2k7Cn07IC8vIEMKCnZvaWQgc2hvd19jb21waWxlX3dhcm5pbmcoKSB7IEMgYyg3LCAx
MSk7IH0K


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