From 53e339a38e27bcf5decf892928df459904442498 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Wed, 7 Oct 2020 21:05:31 +0200 Subject: [PATCH] compile src/os.c without -Werror for better porting to other os --- Makefile | 2 +- src/os.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index af8cfb2..bc6afb4 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ src/engine.o: src/engine.c include/engine.h src/feedback.o src/queue.o src/commo # Compiling the OS helper for the library src/os.o: src/os.c include/os.h src/common.o src/input.o - $(CC) $(CFLAGS) src/os.c -c -o src/os.o + $(CC) $(CFLAGS) -Wno-error src/os.c -c -o src/os.o # Compiling the OS helper for the library src/llmp.o: src/llmp.c include/llmp.h diff --git a/src/os.c b/src/os.c index 8bbd41c..17a6798 100644 --- a/src/os.c +++ b/src/os.c @@ -258,6 +258,7 @@ static u8 bind_cpu(s32 cpuid) { #else + (void) cpuid; // this will need something for other platforms // TODO: Solaris/Illumos has processor_bind ... might worth a try WARNF("Cannot bind to CPU yet on this platform.");