]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] alpha: fix "statement with no effect" warnings
authorRichard Henderson <rth@twiddle.net>
Thu, 28 Jul 2005 08:07:41 +0000 (01:07 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 28 Jul 2005 15:39:02 +0000 (08:39 -0700)
commit79a8810221ee9ea96c4e5a5817afb88f22ea698c
tree7e2c09f335ac6e51e6bad2299c3f9da4132d34c9
parent11be00cba6be114f861123cfc6779f195a615d22
[PATCH] alpha: fix "statement with no effect" warnings

Apparently gcc 4.0 complains about "({ 0; });", which leads to -Werror
breakage in one of the alpha oprofile modules.

One might could argue that this is a gcc bug, in that statement-expressions
should be considered to be function-like rather than statement-like for the
purposes of this warning.  But it's just as easy to use an inline function
in the first place, side-stepping the issue.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-alpha/smp.h
include/linux/smp.h