vnet: Don't use __unused for struct padding 61/40261/2
authorTom Jones <thj@freebsd.org>
Fri, 26 Jan 2024 13:26:28 +0000 (13:26 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 13 Feb 2024 16:20:18 +0000 (16:20 +0000)
__unused is a clang keyword, this struct member will trip the build when
using clang. Instead call the unused padding 'pad' which should be clear
to the purpose if not the usage.

Type: improvement
Change-Id: I0abae34841651be1ef6b7d94864f0dc8185f0733
Signed-off-by: Tom Jones <thj@freebsd.org>
src/vnet/buffer.h

index 144f62a..2f34aa4 100644 (file)
@@ -467,7 +467,7 @@ typedef struct
   } qos;
 
   u8 loop_counter;
-  u8 __unused[5];
+  u8 pad[5]; /* unused */
 
   /**
    * The L4 payload size set on input on GSO enabled interfaces