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:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user