This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: warning patch
- To: Bruce Korb <bkorb at sco dot COM>
- Subject: Re: warning patch
- From: Richard Henderson <rth at cygnus dot com>
- Date: Tue, 27 Jun 2000 18:01:30 -0700
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- References: <3959263A.B3153BCF@sco.com>
On Tue, Jun 27, 2000 at 03:10:02PM -0700, Bruce Korb wrote:
> Is this sort of patch done?
>
> Index: getopt.c
> ===================================================================
> RCS file: /cvs/gcc/egcs/libiberty/getopt.c,v
> retrieving revision 1.5
> diff -u -r1.5 getopt.c
> --- getopt.c 1998/10/13 22:59:40 1.5
> +++ getopt.c 2000/06/27 22:06:19
> @@ -23,6 +23,7 @@
> along with this program; if not, write to the Free Software
> Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
> USA. */
> +#define USE_VAR(v) (void)(v)
No. We usually mark the variable ATTRIBUTE_UNUSED.
r~