Skip to content
Snippets Groups Projects
Commit 4524f7a6 authored by Simon McVittie's avatar Simon McVittie
Browse files

pressure-vessel: Avoid looping through zero-length array of emulator hosts


If compiled for a non-x86 architecture, we don't expect to be emulated
by some foreign architecture with a mechanism like FEX or qemu-user,
so PV_N_SUPPORTED_ARCHITECTURES_AS_EMULATOR_HOST is zero.
In this case don't try to allocate and loop over an array of length 0.
This also avoids gcc warnings with -Wtype-limits,
"comparison of unsigned expression in ‘< 0’ is always false".

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 575afde0
No related branches found
No related tags found
1 merge request!781Test coverage and refactoring in preparation for steamrt/tasks#595
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment