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
File Mode Size
keys
selinux
Kconfig -rw-r--r-- 2.7 KB
Makefile -rw-r--r-- 591 bytes
capability.c -rw-r--r-- 2.8 KB
commoncap.c -rw-r--r-- 9.4 KB
dummy.c -rw-r--r-- 22.5 KB
root_plug.c -rw-r--r-- 3.9 KB
seclvl.c -rw-r--r-- 20.1 KB
security.c -rw-r--r-- 6.0 KB

back to top