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:
Cary Coutant 2016-03-03 14:13:10 -08:00
parent 0863441e8a
commit 202736beb1
3 changed files with 8 additions and 2 deletions

View file

@ -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>

View file

@ -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.

View file

@ -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*);