From b500a08945fc8aeb4a824506db1a86f3edca45cd Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Wed, 15 Jun 2022 11:00:37 -0400 Subject: [PATCH] add uniitialized variable warning to Makefile --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 79782d5..ddde8fb 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ SHELL = /bin/sh 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 -Wall -O -Wall -Wuninitialized \ -Iinclude \ -I/usr/include/SDL2 \ -Iext/stb_libs \