Add unused attribute where necessary to quiet GCC 6 warnings.
authorCary Coutant <ccoutant@gmail.com>
Thu, 3 Mar 2016 22:13:10 +0000 (14:13 -0800)
committerCary Coutant <ccoutant@gmail.com>
Wed, 9 Mar 2016 04:34:18 +0000 (20:34 -0800)
gold/
PR 19751
* arm.cc (Reloc_stub::Key::name): Add unused attribute.
* dirsearch.cc (Dir_caches::~Dir_caches): Likewise.

gold/ChangeLog
gold/arm.cc
gold/dirsearch.cc

index d3ec5de111e39fa84d5e3f3100fe4320e4f6face..e16db61953c810a87f88e15b43f9a7a01bd329bd 100644 (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>
 
index ed13c8709cc4847bdf35dcab951e5ddf21b335c2..c47b00224cc7c0c15c28ae69a9d2893684e58caa 100644 (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.
index 1b3fefa92b795299a101c42ca747f1b93c9ae141..6178332a12ecbe53039d543d7c90c79046a39370 100644 (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*);
This page took 0.03202 seconds and 4 git commands to generate.