https://github.com/torvalds/linux
Revision 79a8810221ee9ea96c4e5a5817afb88f22ea698c authored by Richard Henderson on 28 July 2005, 08:07:41 UTC, committed by Linus Torvalds on 28 July 2005, 15:39:02 UTC
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>
1 parent 11be00c
History
Tip revision: 79a8810221ee9ea96c4e5a5817afb88f22ea698c authored by Richard Henderson on 28 July 2005, 08:07:41 UTC
[PATCH] alpha: fix "statement with no effect" warnings
Tip revision: 79a8810

README

back to top