From f0ffbc7c33f37bdb6205915fcb00743af1b56dd2 Mon Sep 17 00:00:00 2001 From: Tyrolyean Date: Mon, 18 Jul 2022 00:58:11 +0200 Subject: [PATCH] Set to newer c-standard and add source code fortification The fortify source code was added to prevent builds from passing but then failing in our build system and the c-standard was set to c11 to avoid the compiler yelling at me whenever i want to print a size_t. Signed-off-by: Tyrolyean --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d22af13..27c87e3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS = -ansi -pedantic -Wall -Wextra -O2 -Ofast -D_DEFAULT_SOURCE +CFLAGS = -std=c11 -pedantic -Wall -Wextra -O2 -Ofast -D_DEFAULT_SOURCE -D_FORTIFY_SOURCE=2 LDFLAGS = -lX11 -lGL -lGLEW -lm -lrt shadermeh: shadermeh.o window.o shader.o