aboutgitcodebugslistschat
path: root/fwd.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-05-14 00:57:57 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-05-13 23:02:05 +0200
commit29bd08ff0fe09d47155eda3c3191513c3b4f381b (patch)
tree9cff9503504182b246270af2d0b47b0984a6c84b /fwd.h
parent26c71db332fa916fab6faef9dd9833f3d5749ca6 (diff)
downloadpasst-29bd08ff0fe09d47155eda3c3191513c3b4f381b.tar
passt-29bd08ff0fe09d47155eda3c3191513c3b4f381b.tar.gz
passt-29bd08ff0fe09d47155eda3c3191513c3b4f381b.tar.bz2
passt-29bd08ff0fe09d47155eda3c3191513c3b4f381b.tar.lz
passt-29bd08ff0fe09d47155eda3c3191513c3b4f381b.tar.xz
passt-29bd08ff0fe09d47155eda3c3191513c3b4f381b.tar.zst
passt-29bd08ff0fe09d47155eda3c3191513c3b4f381b.zip
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 <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'fwd.h')
-rw-r--r--fwd.h1
1 files changed, 1 insertions, 0 deletions
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,