From 1be2fa0339b0a16b2f271548281c3fd62fbe2e47 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 28 Dec 2025 05:27:28 +0100 Subject: [PATCH 1/2] Stop silencing errors --- Makefile | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 6a7018a..5616769 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,5 @@ -.SILENT: - -CC := gcc -CFLAGS := -Wall -Wextra -O2 - -# Silence some errors/warnings for now -CFLAGS += -Wno-implicit-fallthrough -CFLAGS += -Wno-strict-aliasing -CFLAGS += -Wno-uninitialized +CC ?= gcc +CFLAGS := -Wall -Wextra -ggdb SRC := $(wildcard *.c) OBJ := $(SRC:.c=.o) @@ -25,17 +18,12 @@ SUBDIRS += socket SUBDIRS += sqlite %.o: %.c - @echo CC $@ - @$(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(CFLAGS) -c -o $@ $< %.elf: %.o - @echo LD $@ - @$(CC) $(LIBS) -o $@ $< + $(CC) $(LIBS) -o $@ $< all: $(ELF) - # @for dir in $(SUBDIRS); do \ - # $(MAKE) -C $$dir; \ - # done sub: @-find . -mindepth 1 -maxdepth 1 -type d -exec make --no-print-directory -C {} \; From e0d5d7e8099d37b3873967c9b98bf2d8ffc45b88 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 28 Dec 2025 05:28:01 +0100 Subject: [PATCH 2/2] Remove static from prand_range --- prand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prand.c b/prand.c index ba65868..58ce137 100644 --- a/prand.c +++ b/prand.c @@ -15,7 +15,7 @@ uint64_t prand() { return seed; } -inline uint64_t prand_range(uint64_t min, uint64_t max) { +uint64_t prand_range(uint64_t min, uint64_t max) { uint64_t range = max - min + 1; uint64_t x; uint64_t limit = UINT64_MAX - (UINT64_MAX % range);