Add unused attribute where necessary to quiet GCC 6 warnings.
gold/ PR 19751 * arm.cc (Reloc_stub::Key::name): Add unused attribute. * dirsearch.cc (Dir_caches::~Dir_caches): Likewise.
This commit is contained in:
parent
0863441e8a
commit
202736beb1
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-03-08 Cary Coutant <ccoutant@gmail.com>
|
||||
|
||||
PR 19751
|
||||
* arm.cc (Reloc_stub::Key::name): Add unused attribute.
|
||||
* dirsearch.cc (Dir_caches::~Dir_caches): Likewise.
|
||||
|
||||
2016-03-08 Cary Coutant <ccoutant@gmail.com>
|
||||
Vladimir Radosavljevic <vladimir.radosavljevic@imgtec.com>
|
||||
|
||||
|
|
|
@ -597,7 +597,7 @@ class Reloc_stub : public Stub
|
|||
|
||||
// Name of key. This is mainly for debugging.
|
||||
std::string
|
||||
name() const;
|
||||
name() const ATTRIBUTE_UNUSED;
|
||||
|
||||
private:
|
||||
// Stub type.
|
||||
|
|
|
@ -102,7 +102,7 @@ class Dir_caches
|
|||
: lock_(), caches_()
|
||||
{ }
|
||||
|
||||
~Dir_caches();
|
||||
~Dir_caches() ATTRIBUTE_UNUSED;
|
||||
|
||||
// Add a cache for a directory.
|
||||
void add(const char*);
|
||||
|
|
Loading…
Reference in a new issue