libstdc++: Add unused attributes to shared_ptr functions
authorJonathan Wakely <jwakely@redhat.com>
Fri, 12 Feb 2021 10:36:18 +0000 (10:36 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 12 Feb 2021 14:30:14 +0000 (14:30 +0000)
commit87eaa3c525eb65775e6d77403b83a273a2397099
tree6bd2d61ef819273be985c147891f605626245040
parentc4ece1d96a105f51d7999b7afe9340d582731f5d
libstdc++: Add unused attributes to shared_ptr functions

This avoids some warnings when building with -fno-rtti because the
function parameters are only used when RTTI is enabled.

libstdc++-v3/ChangeLog:

* include/bits/shared_ptr_base.h (__shared_ptr::_M_get_deleter):
Add unused attribute to parameter.
* src/c++11/shared_ptr.cc (_Sp_make_shared_tag::_S_eq):
Likewise.
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/src/c++11/shared_ptr.cc