From 8994b8bcbcd72835668f33dd04ec4f9e1286ad97 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Thu, 2 Jun 2022 18:04:37 -0400 Subject: [PATCH] update Makefile so g++ gives unitialized variable warnings --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5068b25..66aef6e 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ LIBDIR := ext/tangerine LIB := $(LIBDIR)/build/libTangerine.a CXX := g++ -CXXFLAGS := -std=c++11 -g -ggdb3 -Wall \ +# NOTE: have to set -O or -O1 here to get warnings for uninitialized variables +CXXFLAGS := -std=c++11 -g -ggdb3 -O -Wall -Wuninitialized -pedantic \ -I$(LIBDIR)/include/ \ $(shell sdl2-config --cflags) LDFLAGS := $(shell sdl2-config --libs) -lGLEW -lGL