Messages in this thread | ![/](/images/icornerl.gif) | | Date | Fri, 11 Dec 2009 15:15:02 -0800 (PST) | Subject | Re: [PATCH] smc91x: fix unused flags warnings on UP systems | From | David Miller <> |
| |
From: Mike Frysinger <vapier@gentoo.org> Date: Wed, 9 Dec 2009 08:40:04 -0500
> Local flags variables will be declared whenever these functions get used, > but obviously on UP systems the flags parameter won't be touched. So add > some dummy ops that get optimized away anyways to satisfy gcc's warnings. > > Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Applied, although I thought we had a standard macro to handle this kind of case.
In any case, for future reference, the usual way to handle this is usually "(void) var;"
| ![\](/images/icornerr.gif) |