Turn off '-Wtransparent-union' by default
commit59df2fd69755fe8fb36420ea163f9aa52346e61a
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 16:52:49 +0000 (18 16:52 +0000)
committerChristopher Li <sparse@chrisli.org>
Sat, 18 Jul 2009 05:30:10 +0000 (18 05:30 +0000)
treeb86c28f08f961b812830eca363587e7f8551565c
parent7ffff9cb3d04c99107dee6f4283311a9b132d67b
Turn off '-Wtransparent-union' by default

It's a very annoying warning, and it's about a sparse limitation rather
than a real feature, so don't do it by default.

Sure, our lack of transparent union support will then make us warn about
the magic calling convention hacks (eg you'll see warnings like

connect.c:240:39: warning: incorrect type in argument 2 (invalid types)
connect.c:240:39:    expected union __CONST_SOCKADDR_ARG [usertype] __addr
connect.c:240:39:    got struct sockaddr *ai_addr

but it still doesn't mean that we have to be so noisy about just seeing
those transparent unions.  One annoying warning is not an argument for
doing _another_ annoying warning too (and the calling convention
warnings at least only happen if you actually use them, unlike the
transparent union warning that happens every time we see one, used or
not).

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christopher Li <sparse@chrisli.org>
lib.c