From 2d738835f98de1c6ee6c77e4ff3a20af3073e7a3 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 22 Apr 2018 14:22:46 +0200 Subject: [PATCH] Set up compiler warnings as errors --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1819f38..7a31374 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ TARGET = mgos_i2c CC = gcc # CFLAGS = -g -O -Wall -Wextra -std=c89 -pedantic -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -CFLAGS = -g -O -Wall -Wextra -pedantic -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition +CFLAGS = -g -O2 -pedantic -Werror -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition LINKER = gcc LFLAGS = -O -Wall -I. -lm