Add stricter compiler warnings

This commit is contained in:
2026-02-17 13:27:55 +01:00
parent 0e8a1b46ec
commit b5cea69fb8

View File

@@ -1,10 +1,10 @@
CC = gcc
CFLAGS = -Wall -Wextra -O2
CFLAGS = -Wall -Wextra -Werror -pedantic -O2
TARGET = main
.PHONY: all clean
all: clean $(TARGET)
all: $(TARGET)
$(TARGET): main.c random.c random.h
$(CC) $(CFLAGS) -o $@ main.c random.c