From 29bd08ff0fe09d47155eda3c3191513c3b4f381b Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 14 May 2024 00:57:57 +1000 Subject: conf: Fix clang-tidy warning about using an undefined enum value In conf() we temporarily set the forwarding mode variables to 0 - an invalid value, so that we can check later if they've been set by the intervening logic. clang-tidy 18.1.1 in Fedora 40 now complains about this. Satisfy it by giving an name in the enum to the 0 value. Signed-off-by: David Gibson Signed-off-by: Stefano Brivio --- fwd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fwd.h') diff --git a/fwd.h b/fwd.h index 23281d9..41645d7 100644 --- a/fwd.h +++ b/fwd.h @@ -11,6 +11,7 @@ #define NUM_PORTS (1U << 16) enum fwd_ports_mode { + FWD_UNSET = 0, FWD_SPEC = 1, FWD_NONE, FWD_AUTO, -- cgit v1.2.3