Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Oct 1996 17:01:46 +0200
From:      Guenther Grau <grau@fzi.de>
To:        "Jordan K. Hubbard" <jkh@time.cdrom.com>
Cc:        sos@FreeBSD.org, Michael Smith <msmith@atrad.adelaide.edu.au>, peter@spinner.dialix.com, jkh@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sys@freefall.freebsd.org
Subject:   Re: cvs commit: src/sys/i386/isa syscons.c
Message-ID:  <3253D55A.2429@fzi.de>
References:  <14872.844330962@time.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jordan K. Hubbard wrote:
> 
> > I guess we'll have to go fix hordes of files with another gcc'ism
> 
> Or just turn -Wunused off.

This seems reasonable. Another, maybe stupid, as I don't know how many
changes this will involve, suggestion is, to a define a macro that
actually uses these variables, like 

#define _USE(x) (x=x)

A good compiler schould be able to optimize this away.

the use of this macro in the right places would eliminate the warnings,
and still have gcc issue warnings when variables are not used in other
functions.

  Guenther



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3253D55A.2429>