Skip to content
Commit 4ee28799 authored by Peter Maydell's avatar Peter Maydell Committed by Michael Roth
Browse files

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: default avatarPeter Maydell <peter.maydelL@linaro.org>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
(cherry picked from commit 5256a720)

Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 563068a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment