aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Jones <thj@freebsd.org>2024-01-26 13:26:28 +0000
committerDamjan Marion <dmarion@0xa5.net>2024-02-13 16:20:18 +0000
commit249f0dcdf6d0f1656a1a5d4178c3315b8ea520c0 (patch)
treec9d4611a405f06b7a0755d710f5770b79386dc77 /src
parent7c0415450b01b5b7cc58930ab3b659e169513ee8 (diff)
vnet: Don't use __unused for struct padding
__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>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/buffer.h b/src/vnet/buffer.h
index 144f62ac17a..2f34aa4b5fc 100644
--- a/src/vnet/buffer.h
+++ b/src/vnet/buffer.h
@@ -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