From 4bb90da6dfe49d7161561127ad58ce1b7933bec6 Mon Sep 17 00:00:00 2001 From: Garritt McCune Date: Fri, 25 Aug 2023 00:15:18 -0500 Subject: [PATCH] Make the compiler options a bit more strict about C compliance (in other words I just learned about these flags and they seem to be ideal for this project). --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7dd9394..5e72a44 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS=-g -Wall -DDEBUG -Wpedantic -Wextra +CFLAGS=-g -Wall -DDEBUG -Wpedantic -Wextra -Wunused-result -std=c99 -pedantic-errors SRCDIR=src OBJDIR=obj SRCS=$(wildcard $(SRCDIR)/*.c) @@ -11,7 +11,7 @@ BIN=$(BINDIR)/assm all: $(BIN) -release: CFLAGS=-Wall -Wpedantic -O2 +release: CFLAGS=-Wall -Wpedantic -std=c99 -pedantic-errors -O2 release: clean release: $(BIN)