Browse Source

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.
binutils-2_27-branch
Cary Coutant 10 years ago
parent
commit
202736beb1
  1. 6
      gold/ChangeLog
  2. 2
      gold/arm.cc
  3. 2
      gold/dirsearch.cc

6
gold/ChangeLog

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

2
gold/arm.cc

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

2
gold/dirsearch.cc

@ -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…
Cancel
Save