https://bugzilla.novell.com/show_bug.cgi?id=207686 Summary: torcs-1.2.4-25: undefined C code Product: openSUSE 10.2 Version: Alpha 4 plus Platform: All OS/Version: SuSE Linux 10.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de I just tried to compile package torcs-1.2.4-25 with the GNU C compiler. The compiler said track.cpp:1018: warning: operation on 'nbvert' may be undefined The source code is SETPOINT(texLen, 0, x, y, RtTrackHeightL(&trkpos)); but #define SETPOINT(t1, t2, x, y, z) do { \ if (*(curTexElt->name) != 0) { \ tracktexcoord[2*nbvert] = t1; \ tracktexcoord[2*nbvert+1] = t2; \ trackvertices[3*nbvert] = x; \ trackvertices[3*nbvert+1] = y; \ trackvertices[3*nbvert+2] = z; \ trackindices[nbvert] = nbvert++; \ } \ } while (0) Suggest new code #define SETPOINT(t1, t2, x, y, z) do { \ if (*(curTexElt->name) != 0) { \ tracktexcoord[2*nbvert] = t1; \ tracktexcoord[2*nbvert+1] = t2; \ trackvertices[3*nbvert] = x; \ trackvertices[3*nbvert+1] = y; \ trackvertices[3*nbvert+2] = z; \ trackindices[nbvert] = nbvert; \ nbvert++; \ } \ } while (0) -- 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, or are watching someone who is.