This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/13976] New: ext/new_allocator.h:81: warning: unused parameter '__h'
- From: "wanderer at rsu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2004 10:35:11 -0000
- Subject: [Bug libstdc++/13976] New: ext/new_allocator.h:81: warning: unused parameter '__h'
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When i compile test.cc (or test.ii) file with options
g++ -Wall -Wextra -fno-inline -o test.o -c test.cc
i recieve output:
----8X-----------------------------------------------------------
/home/wanderer/pkg/gcc/include/g++/ext/new_allocator.h: In member function
`void __gnu_cxx::new_allocator<_Tp>::deallocate(_Tp*, size_t) [with _Tp =
int]':
/home/wanderer/pkg/gcc/include/g++/bits/stl_vector.h:110: instantiated from
`void __gnu_norm::_Vector_base<_Tp, _Alloc>::_M_deallocate(_Tp*, size_t) [with
_Tp = int, _Alloc = std::allocator<int>]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_vector.h:97: instantiated from
`__gnu_norm::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = int,
_Alloc = std::allocator<int>]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_vector.h:177: instantiated from
`__gnu_norm::vector<_Tp, _Alloc>::vector(const typename
__gnu_norm::_Vector_base<_Tp, _Alloc>::allocator_type&) [with _Tp = int,
_Alloc = std::allocator<int>]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_map.h:339: instantiated from
`_Tp& __gnu_norm::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&)
[with _Key = int, _Tp = __gnu_norm::vector<int, std::allocator<int> >,
_Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int,
__gnu_norm::vector<int, std::allocator<int> > > >]'
test.cc:5: instantiated from here
/home/wanderer/pkg/gcc/include/g++/ext/new_allocator.h:86: warning: unused
parameter '__n'
/home/wanderer/pkg/gcc/include/g++/ext/new_allocator.h: In member function
`_Tp* __gnu_cxx::new_allocator<_Tp>::allocate(size_t, const void*) [with _Tp =
int]':
/home/wanderer/pkg/gcc/include/g++/bits/stl_vector.h:106: instantiated from
`_Tp* __gnu_norm::_Vector_base<_Tp, _Alloc>::_M_allocate(size_t) [with _Tp =
int, _Alloc = std::allocator<int>]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_vector.h:91: instantiated from
`__gnu_norm::_Vector_base<_Tp, _Alloc>::_Vector_base(size_t, const _Alloc&)
[with _Tp = int, _Alloc = std::allocator<int>]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_vector.h:216: instantiated from
`__gnu_norm::vector<_Tp, _Alloc>::vector(const __gnu_norm::vector<_Tp,
_Alloc>&) [with _Tp = int, _Alloc = std::allocator<int>]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_map.h:339: instantiated from
`_Tp& __gnu_norm::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&)
[with _Key = int, _Tp = __gnu_norm::vector<int, std::allocator<int> >,
_Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int,
__gnu_norm::vector<int, std::allocator<int> > > >]'
test.cc:5: instantiated from here
/home/wanderer/pkg/gcc/include/g++/ext/new_allocator.h:81: warning: unused
parameter '__h'
/home/wanderer/pkg/gcc/include/g++/ext/new_allocator.h: In member function
`void __gnu_cxx::new_allocator<_Tp>::deallocate(_Tp*, size_t) [with _Tp =
std::_Rb_tree_node<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]':
/home/wanderer/pkg/gcc/include/g++/bits/stl_tree.h:361: instantiated from
`void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_put_node
(std::_Rb_tree_node<_Val>*) [with _Key = int, _Val = std::pair<const int,
__gnu_norm::vector<int, std::allocator<int> > >, _KeyOfValue =
std::_Select1st<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >, _Compare = std::less<int>, _Alloc =
std::allocator<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_tree.h:391: instantiated from
`void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::destroy_node
(std::_Rb_tree_node<_Val>*) [with _Key = int, _Val = std::pair<const int,
__gnu_norm::vector<int, std::allocator<int> > >, _KeyOfValue =
std::_Select1st<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >, _Compare = std::less<int>, _Alloc =
std::allocator<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_tree.h:1046: instantiated from
`void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase
(std::_Rb_tree_node<_Val>*) [with _Key = int, _Val = std::pair<const int,
__gnu_norm::vector<int, std::allocator<int> > >, _KeyOfValue =
std::_Select1st<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >, _Compare = std::less<int>, _Alloc =
std::allocator<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_tree.h:542: instantiated from
`std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::~_Rb_tree() [with
_Key = int, _Val = std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > >, _KeyOfValue = std::_Select1st<std::pair<const int,
__gnu_norm::vector<int, std::allocator<int> > > >, _Compare = std::less<int>,
_Alloc = std::allocator<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]'
test.cc:9: instantiated from here
/home/wanderer/pkg/gcc/include/g++/ext/new_allocator.h:86: warning: unused
parameter '__n'
/home/wanderer/pkg/gcc/include/g++/ext/new_allocator.h: In member function
`_Tp* __gnu_cxx::new_allocator<_Tp>::allocate(size_t, const void*) [with _Tp =
std::_Rb_tree_node<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]':
/home/wanderer/pkg/gcc/include/g++/bits/stl_tree.h:357: instantiated from
`std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::_M_get_node() [with _Key = int, _Val = std::pair<const int,
__gnu_norm::vector<int, std::allocator<int> > >, _KeyOfValue =
std::_Select1st<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >, _Compare = std::less<int>, _Alloc =
std::allocator<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_tree.h:366: instantiated from
`std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::_M_create_node(const _Val&) [with _Key = int, _Val = std::pair<const
int, __gnu_norm::vector<int, std::allocator<int> > >, _KeyOfValue =
std::_Select1st<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >, _Compare = std::less<int>, _Alloc =
std::allocator<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_tree.h:769: instantiated from
`typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert
(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, const _Val&) [with _Key =
int, _Val = std::pair<const int, __gnu_norm::vector<int, std::allocator<int> >
>, _KeyOfValue = std::_Select1st<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >, _Compare = std::less<int>, _Alloc =
std::allocator<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_tree.h:880: instantiated from
`typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::insert_unique
(std::_Rb_tree_iterator<_Val>, const _Val&) [with _Key = int, _Val =
std::pair<const int, __gnu_norm::vector<int, std::allocator<int> > >,
_KeyOfValue = std::_Select1st<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >, _Compare = std::less<int>, _Alloc =
std::allocator<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_map.h:384: instantiated from
`typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>,
std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, _Alloc>::iterator
__gnu_norm::map<_Key, _Tp, _Compare, _Alloc>::insert(typename
std::_Rb_tree<_Key, std::pair<const _Key, _Tp>,
std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, _Alloc>::iterator,
const std::pair<const _Key, _Tp>&) [with _Key = int, _Tp =
__gnu_norm::vector<int, std::allocator<int> >, _Compare = std::less<int>,
_Alloc = std::allocator<std::pair<const int, __gnu_norm::vector<int,
std::allocator<int> > > >]'
/home/wanderer/pkg/gcc/include/g++/bits/stl_map.h:339: instantiated from
`_Tp& __gnu_norm::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&)
[with _Key = int, _Tp = __gnu_norm::vector<int, std::allocator<int> >,
_Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int,
__gnu_norm::vector<int, std::allocator<int> > > >]'
test.cc:5: instantiated from here
/home/wanderer/pkg/gcc/include/g++/ext/new_allocator.h:81: warning: unused
parameter '__h'
----X8-----------------------------------------------------------
--
Summary: ext/new_allocator.h:81: warning: unused parameter '__h'
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wanderer at rsu dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-unknown-freebsd5.1
GCC host triplet: i386-unknown-freebsd5.1
GCC target triplet: i386-unknown-freebsd5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13976