diff options
author | Florin Coras <fcoras@cisco.com> | 2024-03-12 17:00:51 -0700 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2024-03-13 17:06:32 +0000 |
commit | 39e7f2e650a65bac596a6fc968c9860a1496a5bf (patch) | |
tree | c30ac71c6bc5d79b3f6bdfdfddd81ed24b64e333 /src/vcl/vcl_bapi.c | |
parent | e574736322733ec5a126ca01efb958570e5355eb (diff) |
vcl: fix bitfield truncation with clang16
Reported by phlax while building Envoy with clang16
error: implicit truncation from 'int' to a one-bit wide bit-field
changes value from 1 to -1
[-Werror,-Wsingle-bit-bitfield-constant-conversion]
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ib1b731780cf27a9498299f0424a06000dc67e81e
Diffstat (limited to 'src/vcl/vcl_bapi.c')
-rw-r--r-- | src/vcl/vcl_bapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vcl/vcl_bapi.c b/src/vcl/vcl_bapi.c index 6071f646da4..42704f42c53 100644 --- a/src/vcl/vcl_bapi.c +++ b/src/vcl/vcl_bapi.c @@ -309,7 +309,7 @@ vcl_bapi_hookup (void) .endian = vl_api_##n##_t_endian, \ .format_fn = vl_api_##n##_t_format, \ .size = sizeof (vl_api_##n##_t), \ - .traced = 1, \ + .traced = (u32) 1, \ .tojson = vl_api_##n##_t_tojson, \ .fromjson = vl_api_##n##_t_fromjson, \ .calc_size = vl_api_##n##_t_calc_size, \ |