Bug 136791

Summary: geki2-2.0.3-358: undefined C code
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Philipp Thomas <pth>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2005-12-02 22:37:32 UTC
I just tried to compile package geki2-2.0.3-358 with a prerelease of the
GNU C compiler version 4.1. It said

1.

opening.c:122: warning: operation on "sel" may be undefined

The source code is

          sel = (++ sel) % 5;

I agree with the compiler - this code seems to be undefined. 

Suggest new code 

	sel = (sel + 1) % 5;

2.

opening.c:212: warning: operation on "sel" may be undefined

Duplicate.
Comment 1 Philipp Thomas 2006-02-08 10:52:10 UTC
Fixed for 10.1