Mailinglist Archive: opensuse-bugs (7292 mails)

< Previous Next >
[Bug 485750] New: x11-input-wacom-0.8.2-3.6: undefined code
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 16 Mar 2009 13:41:31 -0600 (MDT)
  • Message-id: <bug-485750-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=485750


Summary: x11-input-wacom-0.8.2-3.6: undefined code
Classification: openSUSE
Product: openSUSE 11.2
Version: Factory
Platform: All
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: X.Org
AssignedTo: bnc-team-xorg-bugs@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: xorg-maintainer-bugs@xxxxxxxxxxxxxxxxxxxxxx
Found By: ---


I just tried to compile Factory package x11-input-wacom-0.8.2-3.6
and the compiler said

/wcmXCommand.c:847: warning: operation on 'sNum' may be undefined

The source code is

return priv->tvResolution[sNum++] | (priv->tvResolution[sNum] << 16);

I have read the code and I agree with the compiler.

There is no requirement that an expression is evaluated left
to right.

Suggest code rework. Perhaps

return priv->tvResolution[sNum] | (priv->tvResolution[sNum + 1] << 16);

might work.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >