summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/nativepainting
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-05-29 13:28:37 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-06-02 20:31:03 +0000
commitc3797196074639a290672f061df81d14d936ff5b (patch)
tree671836cefb83ba488f5e4964020eb9e6bea54370 /src/plugins/platforms/xcb/nativepainting
parentab8ea993b3320ec917ba9cece14a3ea911aad3cf (diff)
QTesselator: disable for-loop analysis on Clang
Caught by Clang 4: error: variable 'k' is incremented both in the loop header and in the loop body [-Werror,-Wfor-loop-analysis] But we don't want to change behavior unless we can prove that it's wrong or that there's a way to refactor this without changing it. Change-Id: Iecee112b0cd96bec8d975430a74ca548ee2f470f Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/nativepainting')
-rw-r--r--src/plugins/platforms/xcb/nativepainting/qtessellator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/nativepainting/qtessellator.cpp b/src/plugins/platforms/xcb/nativepainting/qtessellator.cpp
index 7ffdef54f0..9acb21f95f 100644
--- a/src/plugins/platforms/xcb/nativepainting/qtessellator.cpp
+++ b/src/plugins/platforms/xcb/nativepainting/qtessellator.cpp
@@ -755,6 +755,8 @@ void QTessellatorPrivate::cancelCoincidingEdges()
std::sort(tl, tl + testListSize);
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_CLANG("-Wfor-loop-analysis")
for (int j = 0; j < testListSize; ++j) {
if (tl[j].used)
continue;
@@ -773,6 +775,7 @@ void QTessellatorPrivate::cancelCoincidingEdges()
}
++j;
}
+QT_WARNING_POP
}
free(tl);
}