diff options
| author | Laurent Vivier <laurent@vivier.eu> | 2020-09-02 14:57:52 +0200 |
|---|---|---|
| committer | Laurent Vivier <laurent@vivier.eu> | 2020-09-03 01:09:31 +0200 |
| commit | b119339610d752f799e44bc42f4fe8f9d2bf8072 (patch) | |
| tree | 184865522c5c4cc0dd3e42c5b8d933502698d7a9 /linux-user/target_flat.h | |
| parent | 887adde81d1f1f3897f1688d37ec6851b4fdad86 (diff) | |
| download | focaccia-qemu-b119339610d752f799e44bc42f4fe8f9d2bf8072.tar.gz focaccia-qemu-b119339610d752f799e44bc42f4fe8f9d2bf8072.zip | |
linux-user: fix implicit conversion from enumeration type error
MK_ARRAY(type,size) is used to fill the field_types buffer, and if the "size" parameter is an enum type, clang [-Werror,-Wenum-conversion] reports an error when it is assigned to field_types which is also an enum, argtypes. To avoid that, convert "size" to "int" in MK_ARRAY(). "int" is the type used for the size evaluation in thunk_type_size(). Signed-off-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20200902125752.1033524-1-laurent@vivier.eu>
Diffstat (limited to 'linux-user/target_flat.h')
0 files changed, 0 insertions, 0 deletions