Bug 504889 - kwatch-2.3.3-252.47: undefined code
Summary: kwatch-2.3.3-252.47: undefined code
Status: RESOLVED DUPLICATE of bug 442933
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: KDE4 Applications (show other bugs)
Version: Factory
Hardware: All openSUSE 11.1
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-18 18:33 UTC by David Binderman
Modified: 2009-05-18 19:04 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2009-05-18 18:33:29 UTC
I just tried to build Factory package kwatch-2.3.3-252.47
and the build said

./kwatch/klogwidget.cpp:478: warning: operation on '((KLogWidget*)this)->KLogWidget::m_msgi' may be undefined

The source code is

    m_msgi = (++m_msgi % MAXKWATCHMSG);

I agree with the compiler. Better code would be

    m_msgi = (m_msgi + 1) % MAXKWATCHMSG);
Comment 1 Forgotten User vXTZVacoSi 2009-05-18 19:04:17 UTC
Please send patch to upstream project.

*** This bug has been marked as a duplicate of bug 442933 ***