aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sparsec
diff options
authorLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 12:01:00 -0700
committerChristopher Li <sparse@chrisli.org>2014-04-03 12:03:52 -0700
commit38d1124ec5cd10e117e320e25a55305dca0899b6 (patch)
treeeec5762fff8de734a664877d51a08eb03ac0bc58 /sparsec
parent42ebe4166c52a0c4cb8b50ab488374ac5c92ff2b (diff)
downloadsparse-dev-38d1124ec5cd10e117e320e25a55305dca0899b6.tar.gz
Fix error at anoymous unions
Ok, this fixes the warning, but we seem to still mess up the actual initializer. It looks like some later phase gets the offset wrong, so when we lay things out in memory, we'll put things at offset zero (which is right for your test-case, but not if there was something before that anonymous union). Regardless, that only matters for real code generation, not for using sparse as a semantic checker, so this patch is correct and is an improvement. Reported-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'sparsec')
0 files changed, 0 insertions, 0 deletions