Bug 163561

Summary: control-center-1.4.0.5-85: undefined C code
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: E-mail List <gnome-bugs>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-04-04 20:24:05 UTC
I just tried to compile package control-center-1.4.0.5-85 with the GNU C compiler.

It said

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

The source code is

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

I agree with the compiler. Suggest new code

	line[i] = pixels[ 0] + pixels[ 1] + pixels[ 2];
	pixels += 3;
Comment 1 JP Rosevear 2006-04-11 01:41:16 UTC

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