From fb4316ca6e44a6b34e7d109360fc716c372e1293 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 12 Jul 2017 11:45:06 -0700
Subject: [PATCH] config.pri: Use -O1 optimization in DEBUG flags

when building wit FORTIFY_SOURCES we need some level of
optimization turned on for the compile to succeed

O1 is a good compromise between debug quality and
optimization level.

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 config.pri | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.pri b/config.pri
index 94d595a..d7b221f 100644
--- a/config.pri
+++ b/config.pri
@@ -15,8 +15,8 @@ include(defines.pri)
 # Linker optimization for release build
 QMAKE_LFLAGS_RELEASE+=-Wl,--as-needed
 # Compiler warnings are error if the build type is debug
-QMAKE_CXXFLAGS_DEBUG+=-Werror -O0
-QMAKE_CFLAGS_DEBUG+=-Werror -O0
+QMAKE_CXXFLAGS_DEBUG+=-Werror -O1
+QMAKE_CFLAGS_DEBUG+=-Werror -O1
 
 OBJECTS_DIR = .obj
 MOC_DIR = .moc
