From f8732691b48284bf1fe50f03142c52223a99859c Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 3 Sep 2023 01:41:52 +0200 Subject: build: -Os --- configure | 2 +- src/kernel/vfs/procfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 78df204..ffe47dd 100755 --- a/configure +++ b/configure @@ -32,7 +32,7 @@ CC = x86_64-camellia-gcc V=@ -CFLAGS = -g -std=gnu99 -O2 -fPIC -ftrack-macro-expansion=0 \ +CFLAGS = -g -std=gnu99 -Os -fPIC -ftrack-macro-expansion=0 \ -Wall -Wextra -Wold-style-definition -Wno-address-of-packed-member \ -Werror=incompatible-pointer-types -Werror=implicit-function-declaration diff --git a/src/kernel/vfs/procfs.c b/src/kernel/vfs/procfs.c index fc17f1d..7ba43d8 100644 --- a/src/kernel/vfs/procfs.c +++ b/src/kernel/vfs/procfs.c @@ -90,7 +90,7 @@ procfs_accept(VfsReq *req) { Proc *root = req->backend->kern.data; struct phandle *h = (__force void*)req->id; - Proc *p; + Proc *p = NULL; char buf[512]; assert(root); assert(root->pns == root); -- cgit v1.2.3