This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold commit] PR 19751: Fix build problem with GCC 6
- From: Rafael EspÃndola <rafael dot espindola at gmail dot com>
- To: Cary Coutant <ccoutant at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 9 Mar 2016 08:01:55 -0500
- Subject: Re: [gold commit] PR 19751: Fix build problem with GCC 6
- Authentication-results: sourceware.org; auth=none
- References: <CAJimCsF216r7071mghjuW1f7BKC+p1-=DutRDQ3RNt1WJgLgxA at mail dot gmail dot com>
Why not delete them?
Cheers,
Rafael
On 8 March 2016 at 23:40, Cary Coutant <ccoutant@gmail.com> wrote:
> GCC 6 complains about a couple of unused functions in gold. I've
> committed this patch to add ATTRIBUTE_UNUSED to the declarations.
>
> -cary
>
>
> gold/
> PR 19751
> * arm.cc (Reloc_stub::Key::name): Add unused attribute.
> * dirsearch.cc (Dir_caches::~Dir_caches): Likewise.
>
> 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*);