This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Add unused attribute where necessary to quiet GCC 6 warnings.
- From: Cary Coutant <ccoutant at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 9 Mar 2016 04:37:07 -0000
- Subject: [binutils-gdb] Add unused attribute where necessary to quiet GCC 6 warnings.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=202736beb188043bbac7a3b071f5f7a2b7f85dfa
commit 202736beb188043bbac7a3b071f5f7a2b7f85dfa
Author: Cary Coutant <ccoutant@gmail.com>
Date: Thu Mar 3 14:13:10 2016 -0800
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.
Diff:
---
gold/ChangeLog | 6 ++++++
gold/arm.cc | 2 +-
gold/dirsearch.cc | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gold/ChangeLog b/gold/ChangeLog
index d3ec5de..e16db61 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,4 +1,10 @@
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>
* output.cc (Output_reloc_writer): New type.
diff --git a/gold/arm.cc b/gold/arm.cc
index ed13c87..c47b002 100644
--- a/gold/arm.cc
+++ b/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.
diff --git a/gold/dirsearch.cc b/gold/dirsearch.cc
index 1b3fefa..6178332 100644
--- a/gold/dirsearch.cc
+++ b/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*);