From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk (Win98; I)
Description of problem:
I just tried to compile package nvi-m17n-1.79-20011024.10
from Redhat 9.0 with compiler flag -Wall.
The compiler said
../ex/ex_txt.c:420: warning: operation on `scno' may be undefined
The source code is
scno -= --scno % sw;
Clearly wrong. Better
scno -= scno % sw;
Even though it is important to worry about scno going negative,
and then getting undefined answers.
Also, the compiler said
../vi/v_txt.c:2173: warning: operation on `target' may be undefined
../common/multi_iso2022.c:1141: warning: operation on `p' may be undefined
Looks like quite a bit of undefined code.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. compile with -Wall.
fixed in 1.79-20011024.15.