mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Andrey Borzenkov <arvidjaar@mail.ru>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Avoiding "unused variable" warnings
Date: 13 Jul 2003 17:22:22 +0100	[thread overview]
Message-ID: <1058113342.561.0.camel@dhcp22.swansea.linux.org.uk> (raw)
In-Reply-To: <3F117EE3.5010200@pobox.com>

On Sul, 2003-07-13 at 16:46, Jeff Garzik wrote:
> No need for a macro, just do
> 
> 	(void) var_name;
> 
> It doesn't generate any code, and it shuts up the compiler.

It may do. The proper gcc thing is attribute unused. Both are dangerous
as they hide when the variable becomes really unused


  reply	other threads:[~2003-07-13 16:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-13 15:32 Andrey Borzenkov
2003-07-13 15:46 ` Jeff Garzik
2003-07-13 16:22   ` Alan Cox [this message]
2003-07-13 16:45     ` Roman Zippel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1058113342.561.0.camel@dhcp22.swansea.linux.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=arvidjaar@mail.ru \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®