]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/target-arm: Add missing parens to assertions
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Jan 2013 20:04:16 +0000 (20:04 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 21 Jan 2013 19:52:23 +0000 (13:52 -0600)
commit4ee28799d417de0c929622021d6dbaa58a53dfc5
tree63a4e68f9a69a13aa206f32d8ae80392f8edea08
parent563068a8b2e980713e056512bcd941237f6090fb
tcg/target-arm: Add missing parens to assertions

Silence a (legitimate) complaint about missing parentheses:

tcg/arm/tcg-target.c: In function ‘tcg_out_qemu_ld’:
tcg/arm/tcg-target.c:1148:5: error: suggest parentheses around
comparison in operand of ‘&’ [-Werror=parentheses]
tcg/arm/tcg-target.c: In function ‘tcg_out_qemu_st’:
tcg/arm/tcg-target.c:1357:5: error: suggest parentheses around
comparison in operand of ‘&’ [-Werror=parentheses]

which meant that we would mistakenly always assert if running
a QEMU built with debug enabled on ARM.

Signed-off-by: Peter Maydell <peter.maydelL@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
(cherry picked from commit 5256a7208a7c2af19baf8f99bd4f06632f9f9ba9)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tcg/arm/tcg-target.c