From 8e63d4e61836c092688f0da6914851a25b0250c2 Mon Sep 17 00:00:00 2001 From: Stefan Karlsson Date: Sun, 6 Mar 2016 12:45:08 +0100 Subject: [PATCH] LP-251 Turn on -Werror for uavobjgenerator on osx --- ground/uavobjgenerator/uavobjgenerator.pro | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ground/uavobjgenerator/uavobjgenerator.pro b/ground/uavobjgenerator/uavobjgenerator.pro index 4a03832df..1ac5d95cf 100644 --- a/ground/uavobjgenerator/uavobjgenerator.pro +++ b/ground/uavobjgenerator/uavobjgenerator.pro @@ -6,7 +6,12 @@ QT += xml QT -= gui macx { - QMAKE_CXXFLAGS += -fpermissive + CONFIG += warn_on + !warn_off { + QMAKE_CXXFLAGS_WARN_ON += -Werror + QMAKE_CFLAGS_WARN_ON += -Werror + QMAKE_CXXFLAGS += -fpermissive + } } # use ccache when available QMAKE_CC = $$(CCACHE) $$QMAKE_CC