From 390927cc3228dc734b6f09c789eb61630a62cb9b Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Fri, 27 May 2016 14:14:04 -0400 Subject: [PATCH 1/2] Makefile: compile debug build with -Og on GCC 4.8 and higher --- src/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index f43e3c24..f7a8c1b8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -366,7 +366,12 @@ ifdef DEBUGMODE # build with debugging information WINDRESFLAGS = -D_DEBUG - CFLAGS+=-O0 -Wall -DPARANOIA -DRANGECHECK +ifdef GCC48 + CFLAGS+=-Og +else + CFLAGS+=-O0 +endif + CFLAGS+= -Wall -DPARANOIA -DRANGECHECK else From d1aab2e41860b428af4b37ad34341c4cdd2a8af8 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Fri, 27 May 2016 14:22:02 -0400 Subject: [PATCH 2/2] gcc: clear uninitialized warnings in am_map.c --- src/am_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/am_map.c b/src/am_map.c index 90f81572..b28cecf1 100644 --- a/src/am_map.c +++ b/src/am_map.c @@ -999,7 +999,7 @@ static inline void AM_drawWalls(void) static mline_t l; #ifdef ESLOPE fixed_t frontf1,frontf2, frontc1, frontc2; // front floor/ceiling ends - fixed_t backf1, backf2, backc1, backc2; // back floor ceiling ends + fixed_t backf1 = 0, backf2 = 0, backc1 = 0, backc2 = 0; // back floor ceiling ends #endif for (i = 0; i < numlines; i++)