From becfab0f178ffd21b79404495806a72e1222257f Mon Sep 17 00:00:00 2001 From: Tianyu Li Date: Fri, 7 Jul 2023 06:47:56 +0000 Subject: 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 Change-Id: Iab006c036d4068af2fe3caaefc871a95b26cc578 --- src/vlibapi/api_common.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 */ -- cgit 1.2.3-korg