[X2Go-Commits] [nx-libs] 182/429: Drawable.c: Prevent PVS Studio warning
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:36:25 CEST 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit e664d82019ef2a876cc325c746b4e7521b9c1910
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Mon Jan 4 16:35:07 2021 +0100
Drawable.c: Prevent PVS Studio warning
"V560 A part of conditional expression is always true: oldStatus ==
NotSynchronized."
---
nx-X11/programs/Xserver/hw/nxagent/Drawable.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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)
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list