On 01/27/2016 11:51 AM, Jakub Jelinek wrote:
Hi!

On Wed, Jan 27, 2016 at 11:17:18AM +0100, Richard Biener wrote:
No, simply warn and set TREE_NO_WARNING so cgraph doesn't warn again.

This seems to work too, bootstrapped/regtested on x86_64-linux and
i686-linux, ok for trunk?

2016-01-25  Jakub Jelinek  <ja...@redhat.com>

        PR debug/66869
        * c-decl.c (c_write_global_declarations_1): Warn with
        warn_unused_function if static prototype without definition
        is not C_DECL_USED.

        * gcc.dg/pr66869.c: New test.
OK.
jeff

Reply via email to