Commit e664d820 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Drawable.c: Prevent PVS Studio warning

"V560 A part of conditional expression is always true: oldStatus == NotSynchronized."
parent 67c7513b
...@@ -1605,9 +1605,11 @@ void nxagentUnmarkCorruptedRegion(DrawablePtr pDrawable, RegionPtr pRegion) ...@@ -1605,9 +1605,11 @@ void nxagentUnmarkCorruptedRegion(DrawablePtr pDrawable, RegionPtr pRegion)
* If the drawable becomes synchronized, the counter reporting the * If the drawable becomes synchronized, the counter reporting the
* number of corrupted drawables must be decreased. Moreover the * number of corrupted drawables must be decreased. Moreover the
* corrupted timestamp must be reset. * corrupted timestamp must be reset.
* Note: oldstatus has been checked above and is always
* "NotSynchronized" here.
*/ */
if (oldStatus == NotSynchronized && if (/*oldStatus == NotSynchronized &&*/
nxagentDrawableStatus(pDrawable) == Synchronized) nxagentDrawableStatus(pDrawable) == Synchronized)
{ {
if (pDrawable -> type == DRAWABLE_PIXMAP) if (pDrawable -> type == DRAWABLE_PIXMAP)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment