From 7f4cdc65a390c5bacab00cc38100d66637394476 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 23 Feb 2023 18:36:11 +0100 Subject: fix: misc warnings --- src/kernel/arch/amd64/driver/rtl8139.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/arch/amd64') diff --git a/src/kernel/arch/amd64/driver/rtl8139.c b/src/kernel/arch/amd64/driver/rtl8139.c index 8a40f28..09b0ca5 100644 --- a/src/kernel/arch/amd64/driver/rtl8139.c +++ b/src/kernel/arch/amd64/driver/rtl8139.c @@ -118,6 +118,7 @@ static int try_rx(Proc *proc, void __user *dest, size_t dlen) { * 0 - Receive OK * 14 - Physical Address Matched */ flags = *(uint16_t*)(rxbuf + rxpos); + (void)flags; // TODO check rtl8139 rx flags rxpos += 2; /* doesn't include the header, includes a 4 byte crc */ size = *(uint16_t*)(rxbuf + rxpos); -- cgit v1.2.3