John Little wrote:
> gcc 4.9.2 still gives a warning:
>
> ops.c: In function ‘do_addsub’:
> ops.c:5406:10: warning: ‘startcol’ may be used uninitialized in this function
> [-Wmaybe-uninitialized]
> int startcol;
> ^
> AFAICT it's not a problem, but I'm not surprised gcc can't fi
gcc 4.9.2 still gives a warning:
ops.c: In function ‘do_addsub’:
ops.c:5406:10: warning: ‘startcol’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
int startcol;
^
AFAICT it's not a problem, but I'm not surprised gcc can't figure that out.
Regards, John Little
Patch 7.4.778
Problem:Coverity warns for uninitialized variable.
Solution: Change condition of assignment.
Files: src/ops.c
*** ../vim-7.4.777/src/ops.c2015-07-03 12:44:01.735748596 +0200
--- src/ops.c 2015-07-10 21:44:12.118882050 +0200
***
*** 5702,5711