Re: [Patch] kbuild: fix a compile warning

From: Amerigo Wang
Date: Sat May 30 2009 - 22:23:22 EST


Andrew Morton wrote:
On Fri, 15 May 2009 03:51:18 -0400 Amerigo Wang <amwang@xxxxxxxxxx> wrote:

I got this warning:

With which gcc version?

gcc version 4.4.0 (GCC)

HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c: In function 'traps':
scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rules


(wtf?)

Try the man page of gcc for -fstrict-aliasing. :)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/