Bug 158409 - control-center-1.4.0.5-83: undefined C code
Summary: control-center-1.4.0.5-83: undefined C code
Status: RESOLVED FIXED
: 163561 (view as bug list)
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SuSE Linux 10.1
: P5 - None : Normal
Target Milestone: ---
Assignee: Ladislav Michnovic
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 21:20 UTC by David Binderman
Modified: 2006-04-11 01:41 UTC (History)
0 users

See Also:
Found By: Other
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 2006-03-15 21:20:45 UTC
I just tried to compile package control-center-1.4.0.5-83 with the
GNU C compiler.

It said

render-background.c:130: warning: operation on "pixels" may be undefined

The source code is

        line[i] = *(pixels++) + *(pixels++) + *(pixels++);

I agree with the compiler. This is undefined C code. Suggest new code

        line[i] = pixels[ 0] + pixels[ 1] + pixels[ 2];
        pixels += 3;
Comment 1 Ladislav Michnovic 2006-04-03 10:34:45 UTC
I'll take a look. Thank you for reporting.
Comment 2 Ladislav Michnovic 2006-04-03 15:13:32 UTC
Fixed, package submited.
Comment 3 JP Rosevear 2006-04-11 01:41:16 UTC
*** Bug 163561 has been marked as a duplicate of this bug. ***