This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: A strange gcc behavior, and an argument against -Wno-unused
> From: Tom Tromey <tromey@redhat.com>
> Cc: Pedro Alves <pedro@codesourcery.com>, gdb@sourceware.org,
> dave.korn.cygwin@googlemail.com, msnyder@vmware.com
> Date: Sat, 10 Oct 2009 12:25:38 -0600
>
> >>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>
> >> > Or append "-Wunused-value"?
> >>
> >> Sounds like a good first step to me.
>
> Eli> What version of GCC introduced this switch?
>
> It seems to have been added here:
>
> Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
>
> * flags.h (warn_unused_function, warn_unused_label,
> warn_unused_parameter, warn_unused_variable, warn_unused_value):
> Replace ``warn_unused''.
> (set_Wunused): Add declaration.
> [...]
>
> That would put it in 3.0 and maybe 2.95.3.
Thanks, that's old enough to be useful for most, if not all, of those
who build GDB.