From 2ed2d59def758b049f42e7c75bfb48957a73bd39 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 2 Apr 2025 14:13:16 +1100 Subject: platform requirements: Fix clang-tidy warning Recent clang-tidy versions complain about enums defined with some but not all entries given explicit values. I'm not entirely convinced about whether that's a useful warning, but in any case we really don't need the explicit values in doc/platform-requirements/reuseaddr-priority.c, so remove them to make clang happy. Signed-off-by: David Gibson Signed-off-by: Stefano Brivio --- doc/platform-requirements/reuseaddr-priority.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/platform-requirements/reuseaddr-priority.c b/doc/platform-requirements/reuseaddr-priority.c index 701b6ff..af39a39 100644 --- a/doc/platform-requirements/reuseaddr-priority.c +++ b/doc/platform-requirements/reuseaddr-priority.c @@ -46,13 +46,13 @@ /* Different cases for receiving socket configuration */ enum sock_type { /* Socket is bound to 0.0.0.0:DSTPORT and not connected */ - SOCK_BOUND_ANY = 0, + SOCK_BOUND_ANY, /* Socket is bound to 127.0.0.1:DSTPORT and not connected */ - SOCK_BOUND_LO = 1, + SOCK_BOUND_LO, /* Socket is bound to 0.0.0.0:DSTPORT and connected to 127.0.0.1:SRCPORT */ - SOCK_CONNECTED = 2, + SOCK_CONNECTED, NUM_SOCK_TYPES, }; -- cgit v1.2.3