This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix warnings in empty automaton
- From: Vladimir Makarov <vmakarov at redhat dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 07 May 2002 15:04:17 -0400
- Subject: Re: Fix warnings in empty automaton
- References: <u8adrb95fo.fsf@gromit.moeb>
Andreas Jaeger wrote:
>
> Compiling mainline for i686-linux-gnu I got these warnings:
>
> insn-attrtab.c:42278: warning: unused variable `temp'
> insn-attrtab.c:42276: warning: unused parameter `chip'
> insn-attrtab.c:42300: warning: unused variable `temp'
> insn-attrtab.c:42298: warning: unused parameter `chip'
>
> The appended patch fixes the warnings, bootstrapped/regtested on
> i686-linux-gnu.
>
> Ok to commit?
>
> Andreas
>
> 2002-05-07 Andreas Jaeger <aj@suse.de>
>
> * genautomata.c (output_internal_min_issue_delay_func): Add
> ATTRIBUTE_UNUSED to avoid warning with empty dfa.
> (output_internal_trans_func): Likewise.
>
Yes, that is ok. You can commit it. Thanks for the patch.
Vlad