Bugzilla – Bug 136688
bb-1.3-356: undefined C code
Last modified: 2005-12-02 19:39:27 UTC
I just tried to compile package bb-1.3-356 with a prerelease of the GNU C compiler version 4.1. It said 1. zoom.c:324: warning: operation on `ftmp' may be undefined The source code is myprice += PRICE(pos[p], y); /*store data */ but #define PRICE(i,i1) ((((ftmp=((i)-(i1)))*ftmp)*(rangedelta))) I agree with the compiler - this code seems to be undefined. AFAIK, there are no guarantees in C that the left side of a multiply operation happens before the right side. Suggest code rework. 2. zoom.c:354: warning: operation on `ftmp' may be undefined zoom.c:388: warning: operation on `ftmp' may be undefined zoom.c:418: warning: operation on `ftmp' may be undefined Duplicates. BTW, the email address of the author [ kupsaf@feld.cvut.cz ] seems to be broken.
Fixed.