This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: warning patch


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~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]