Bugzilla – Bug 495465
idzebra-2.0.36-2.1: undefined code
Last modified: 2009-04-21 12:11:27 UTC
I just tried to build Factory package idzebra-2.0.36-2.1 and the build said bset.c:261: warning: operation on 'i' may be undefined The source code is while ((i1=trav_BSet (sh, src, ++i)) == i) I agree with the compiler. There is no guarantee that the left side of a compare is evaluated before the right side of a compare. Suggest code rework.
Reported upstream: http://lists.indexdata.dk/pipermail/zebralist/2009-April/002185.html
Patch is now available from here: http://lists.indexdata.dk/pipermail/zebralist/2009-April/002187.html (thanks, Adam!). Because this code fragment is only in use while debugging, I will wait for the next official idzebra update.