mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-07 06:57:42 -07:00
tcg: Move TCG_TYPE_COUNT outside enum
The count is not itself an enumerator. Move it outside to prevent the compiler from considering it with -Wswitch-enum. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
aef8540290
commit
89496a85b4
1 changed files with 2 additions and 1 deletions
|
|
@ -294,7 +294,8 @@ typedef enum TCGType {
|
|||
TCG_TYPE_V128,
|
||||
TCG_TYPE_V256,
|
||||
|
||||
TCG_TYPE_COUNT, /* number of different types */
|
||||
/* Number of different types (integer not enum) */
|
||||
#define TCG_TYPE_COUNT (TCG_TYPE_V256 + 1)
|
||||
|
||||
/* An alias for the size of the host register. */
|
||||
#if TCG_TARGET_REG_BITS == 32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue