This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH] Fix PR63877
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 25 Nov 2014 01:45:05 +0000
- Subject: Re: [C PATCH] Fix PR63877
- Authentication-results: sourceware.org; auth=none
- References: <20141124145253 dot GP29446 at redhat dot com>
On Mon, 24 Nov 2014, Marek Polacek wrote:
> This PR is basically the same as PR54113, except this time it's about
> -Wmissing-declarations and not about -Wmissing-prototypes. The problem
> here is that we were emitting bogus warning for a correct use of an
> inline function. Thus fixed in the same way as PR54113, that is, don't
> warn for inline functions.
>
> Bootstrapped/regtested on ppc64-linux, ok for trunk?
>
> 2014-11-24 Marek Polacek <polacek@redhat.com>
>
> PR c/63877
> * c-decl.c (start_function): Disable -Wmissing-declarations warning
> for inline functions.
>
> * gcc.dg/pr63877.c: New test.
OK.
--
Joseph S. Myers
joseph@codesourcery.com