Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMWM Planet Generator cdn3 <osm@cdn3.mapswithme.com>2015-11-11 19:47:33 +0300
committerAlex Zolotarev <alex@maps.me>2015-11-13 19:05:51 +0300
commitb629faf5163fd240a17d32de80dc07f999c78bfa (patch)
tree1ac5316bd0dc7928d6aa6f15766c61374a37964c /common.pri
parent2c6870545586933137b5eaef625a649bbf2f4f17 (diff)
clang3.5 missing warning option fix.
Diffstat (limited to 'common.pri')
-rw-r--r--common.pri10
1 files changed, 8 insertions, 2 deletions
diff --git a/common.pri b/common.pri
index 3f679d815e..e73776b0ee 100644
--- a/common.pri
+++ b/common.pri
@@ -130,8 +130,14 @@ win32-msvc201* {
# unix also works for Android
unix|win32-g++ {
LIBS *= -lz
- QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter \
- -Wno-unused-local-typedef
+ QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter
+
+ # -Wno-unused-local-typedef is not supported on clang 3.5.
+ IS_CLANG35 = $$system( echo | $$QMAKE_CXX -dM -E - | grep '__clang_version__.*3\.5.*' )
+ if (isEmpty(IS_CLANG35)){
+ QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-local-typedef
+ }
+
*-clang {
QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-conversion -Werror=return-type -Wno-deprecated-register
}