From b932141c7d59eaee5ae72c914d7fc7078b0a3608 Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Tue, 27 Jul 2010 12:52:13 +0200 Subject: Remove an useless assert from comp_func_SourceOver_sse2() The assert can never be true since const_alpha is unsigned. That line was triggering a warning on GCC. Reviewed-by: Olivier Goffart --- src/gui/painting/qdrawhelper_sse2.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gui/painting/qdrawhelper_sse2.cpp b/src/gui/painting/qdrawhelper_sse2.cpp index b4ef23e..e090ae5 100644 --- a/src/gui/painting/qdrawhelper_sse2.cpp +++ b/src/gui/painting/qdrawhelper_sse2.cpp @@ -145,7 +145,6 @@ void qt_blend_rgb32_on_rgb32_sse2(uchar *destPixels, int dbpl, void QT_FASTCALL comp_func_SourceOver_sse2(uint *destPixels, const uint *srcPixels, int length, uint const_alpha) { - Q_ASSERT(const_alpha >= 0); Q_ASSERT(const_alpha < 256); const quint32 *src = (const quint32 *) srcPixels; -- cgit v0.12