From 5418a2e1bbc26660bb8579c57fa19e4a04c34200 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 5 May 2022 22:58:01 +0200 Subject: kernel: fix a few minor compiler warnings --- src/kernel/arch/i386/driver/serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/arch/i386/driver/serial.c') diff --git a/src/kernel/arch/i386/driver/serial.c b/src/kernel/arch/i386/driver/serial.c index 614d4e0..12cf2b8 100644 --- a/src/kernel/arch/i386/driver/serial.c +++ b/src/kernel/arch/i386/driver/serial.c @@ -92,7 +92,7 @@ static void accept(struct vfs_request *req) { if (req->caller) { // clamp between 0, sizeof buf ret = req->output.len; - if (ret > sizeof buf) ret = sizeof buf; + if (ret > (int)sizeof buf) ret = sizeof buf; if (ret < 0) ret = 0; ret = serial_read(buf, ret); @@ -120,4 +120,4 @@ static void accept(struct vfs_request *req) { } } -static bool is_ready(struct vfs_backend *self) { return blocked_on == NULL; } +static bool is_ready(struct vfs_backend __attribute__((unused)) *self) { return blocked_on == NULL; } -- cgit v1.2.3