summaryrefslogtreecommitdiffstats
path: root/hw/misc/pci-testdev.c
diff options
context:
space:
mode:
authorStefan Weil2016-04-05 22:24:51 +0200
committerStefan Weil2016-04-07 19:01:21 +0200
commit3ccdbecf80a322a31dbf452d433321c67f82d534 (patch)
treea838c9f7275d3fdc83ccee361ffb82930e5de3f6 /hw/misc/pci-testdev.c
parentMerge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into sta... (diff)
downloadqemu-3ccdbecf80a322a31dbf452d433321c67f82d534.tar.gz
qemu-3ccdbecf80a322a31dbf452d433321c67f82d534.tar.xz
qemu-3ccdbecf80a322a31dbf452d433321c67f82d534.zip
tci: Fix build regression
Commit d38ea87ac54af64ef611de434d07c12dc0399216 cleaned the include statements which resulted in a wrong order of assert.h and the definition of NDEBUG in tci.c. Normally NDEBUG modifies the definition of the assert macro, but here this definition comes too late which results in a failing build. To fix this, a new macro tci_assert which depends on CONFIG_DEBUG_TCG is introduced. Only builds with CONFIG_DEBUG_TCG will use assertions. Even in this case, it is still possible to disable assertions by defining NDEBUG via compiler settings. Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'hw/misc/pci-testdev.c')
0 files changed, 0 insertions, 0 deletions