summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_module_headers.prf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/features/qt_module_headers.prf')
-rw-r--r--mkspecs/features/qt_module_headers.prf11
1 files changed, 11 insertions, 0 deletions
diff --git a/mkspecs/features/qt_module_headers.prf b/mkspecs/features/qt_module_headers.prf
index 790a4ee29e..a0be15c4a0 100644
--- a/mkspecs/features/qt_module_headers.prf
+++ b/mkspecs/features/qt_module_headers.prf
@@ -204,9 +204,20 @@ headersclean:!internal_module {
!contains(QT_ARCH, arm):!contains(QT_ARCH, mips): \
hcleanFLAGS += -Wcast-align
+ greaterThan(QT_CLANG_MAJOR_VERSION, 3) {
+ hcleanFLAGS += -Wdouble-promotion
+ } greaterThan(QT_CLANG_MAJOR_VERSION, 2):greaterThan(QT_CLANG_MINOR_VERSION, 7) {
+ hcleanFLAGS += -Wdouble-promotion
+ }
+
!clang {
# options accepted only by GCC
+ greaterThan(QT_GCC_MAJOR_VERSION, 4) {
+ hcleanFLAGS += -Wdouble-promotion
+ } greaterThan(QT_GCC_MAJOR_VERSION, 3):greaterThan(QT_GCC_MINOR_VERSION, 4) {
+ hcleanFLAGS += -Wdouble-promotion
+ }
c++11 {
# only enabled for actual c++11 builds due to
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52806