diff options
author | Jieqiang Wang <jieqiang.wang@arm.com> | 2023-07-24 16:52:06 +0800 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2023-11-07 10:58:50 +0000 |
commit | 76d14b797c05aa5e7ac9aa9ee99e6b03ee0837db (patch) | |
tree | cd438051ace2e702cc479f5fc0207d9c947b4e02 /src/vnet/policer | |
parent | e73c731ad8890d1b64c55e3e9dfb9fc8529624f9 (diff) |
misc: silence -Wmaybe-uninitialized warnings
GCC 12 complains about such errors while the code itself looks good.
Type: fix
Signed-off-by: Jieqiang Wang <jieqiang.wang@arm.com>
Change-Id: I021719fdbf7d9bd93a12eac76aeac8cbca13a810
Diffstat (limited to 'src/vnet/policer')
-rw-r--r-- | src/vnet/policer/police_inlines.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/policer/police_inlines.h b/src/vnet/policer/police_inlines.h index 6b0c0ecf725..08000b9a303 100644 --- a/src/vnet/policer/police_inlines.h +++ b/src/vnet/policer/police_inlines.h @@ -123,7 +123,7 @@ policer_handoff (vlib_main_t *vm, vlib_node_runtime_t *node, u32 n_enq, n_left_from, *from; vnet_policer_main_t *pm; policer_t *policer; - u32 this_thread, policer_thread; + u32 this_thread, policer_thread = 0; bool single_policer_node = (policer_index != ~0); pm = &vnet_policer_main; |