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).

This commit is contained in:
2023-08-25 00:15:18 -05:00
parent 4af2527806
commit 4bb90da6df
+2 -2
View File
@@ -1,5 +1,5 @@
CC = gcc CC = gcc
CFLAGS=-g -Wall -DDEBUG -Wpedantic -Wextra CFLAGS=-g -Wall -DDEBUG -Wpedantic -Wextra -Wunused-result -std=c99 -pedantic-errors
SRCDIR=src SRCDIR=src
OBJDIR=obj OBJDIR=obj
SRCS=$(wildcard $(SRCDIR)/*.c) SRCS=$(wildcard $(SRCDIR)/*.c)
@@ -11,7 +11,7 @@ BIN=$(BINDIR)/assm
all: $(BIN) all: $(BIN)
release: CFLAGS=-Wall -Wpedantic -O2 release: CFLAGS=-Wall -Wpedantic -std=c99 -pedantic-errors -O2
release: clean release: clean
release: $(BIN) release: $(BIN)