From 224b13fb6058c73ecf4530137098ef347fda9a81 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 29 Sep 2025 00:21:38 +0000 Subject: [PATCH] nicer git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@41 b9cfdab3-6d41-4d17-bbe4-086880011989 --- GNUmakefile | 2 +- src/x11.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 211bbdc..c86d8f5 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -3,7 +3,7 @@ TARGET = $(shell uname -s) CC = gcc -CFLAGS = -fPIC -Iinclude -D_MILSKO +CFLAGS = -Wall -Wextra -fPIC -Iinclude -D_MILSKO LDFLAGS = LIBS = diff --git a/src/x11.c b/src/x11.c index 592185d..fea7074 100644 --- a/src/x11.c +++ b/src/x11.c @@ -4,10 +4,8 @@ static unsigned long mask = ExposureMask | StructureNotifyMask | ButtonPressMask | ButtonReleaseMask; MwLL MwLLCreate(MwLL parent, int x, int y, int width, int height) { - MwLL r; - Window p; - Window root; - unsigned int border, depth; + MwLL r; + Window p; r = malloc(sizeof(*r));