diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2021-01-04 16:35:07 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2021-01-15 19:50:36 +0100 |
commit | e664d82019ef2a876cc325c746b4e7521b9c1910 (patch) | |
tree | 4bb98abebf84a0861d3af82b1854a3d285bd975a /nx-X11/programs/Xserver/hw | |
parent | 67c7513bfc18c5bcb94ea152823601970a18d7f3 (diff) | |
download | nx-libs-e664d82019ef2a876cc325c746b4e7521b9c1910.tar.gz nx-libs-e664d82019ef2a876cc325c746b4e7521b9c1910.tar.bz2 nx-libs-e664d82019ef2a876cc325c746b4e7521b9c1910.zip |
Drawable.c: Prevent PVS Studio warning
"V560 A part of conditional expression is always true: oldStatus ==
NotSynchronized."
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Drawable.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c index ca1b09dd3..2facf1df3 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c @@ -1605,9 +1605,11 @@ void nxagentUnmarkCorruptedRegion(DrawablePtr pDrawable, RegionPtr pRegion) * If the drawable becomes synchronized, the counter reporting the * number of corrupted drawables must be decreased. Moreover the * 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) { if (pDrawable -> type == DRAWABLE_PIXMAP) |