summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/driver/serial.c
diff options
context:
space:
mode:
authordzwdz2022-05-05 22:58:01 +0200
committerdzwdz2022-05-05 22:58:01 +0200
commit5418a2e1bbc26660bb8579c57fa19e4a04c34200 (patch)
tree6e5c5a4e49f2d59c2e958711eee2070c351cc6df /src/kernel/arch/i386/driver/serial.c
parent40f4fb7c9879c678fa82906116fefdaed63aaed6 (diff)
kernel: fix a few minor compiler warnings
Diffstat (limited to 'src/kernel/arch/i386/driver/serial.c')
-rw-r--r--src/kernel/arch/i386/driver/serial.c4
1 files changed, 2 insertions, 2 deletions
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; }