diff options
author | Tianyu Li <tianyu.li@arm.com> | 2023-07-07 06:47:56 +0000 |
---|---|---|
committer | Tianyu Li <tianyu.li@arm.com> | 2023-07-07 18:06:15 +0800 |
commit | becfab0f178ffd21b79404495806a72e1222257f (patch) | |
tree | e1ff7e365448c1bcc37710dc7d59b9a5b9692fc8 /src | |
parent | fa6d21b4fff18bfecbf3935dac131f18a24fa3b3 (diff) |
api: fix signed single bit field
clang-16 complains about signed one-bit bitfield value
changes from 1 to -1. Use unsigned type instead.
Type: fix
Signed-off-by: Tianyu Li <tianyu.li@arm.com>
Change-Id: Iab006c036d4068af2fe3caaefc871a95b26cc578
Diffstat (limited to 'src')
-rw-r--r-- | src/vlibapi/api_common.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vlibapi/api_common.h b/src/vlibapi/api_common.h index d644d939ad3..6311724247f 100644 --- a/src/vlibapi/api_common.h +++ b/src/vlibapi/api_common.h @@ -127,11 +127,11 @@ typedef struct void *fromjson; /**< JSON to binary convert function */ void *calc_size; /**< message size calculation */ int size; /**< message size */ - int traced : 1; /**< is this message to be traced? */ - int replay : 1; /**< is this message to be replayed? */ - int message_bounce : 1; /**< do not free message after processing */ - int is_mp_safe : 1; /**< worker thread barrier required? */ - int is_autoendian : 1; /**< endian conversion required? */ + u32 traced : 1; /**< is this message to be traced? */ + u32 replay : 1; /**< is this message to be replayed? */ + u32 message_bounce : 1; /**< do not free message after processing */ + u32 is_mp_safe : 1; /**< worker thread barrier required? */ + u32 is_autoendian : 1; /**< endian conversion required? */ } vl_msg_api_msg_config_t; /** Message header structure */ |