After r232548, clang complains about the apparent '=-' operator (a

left-over from ancient C times, and a frequent typo) in growfs.c:

sbin/growfs/growfs.c:1550:8: error: use of unary operator that may be intended as compound assignment (-=) [-Werror]
        blkno =- 1;
              ^~

Use 'blkno = -1' instead, to silence the error.
This commit is contained in:
Dimitry Andric 2012-03-12 11:15:44 +00:00
parent addfbd03b7
commit 8f061f61db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232858

View file

@ -1547,7 +1547,7 @@ alloc(void)
* block here which we have to relocate a couple of seconds later again
* again, and we are not prepared to to this anyway.
*/
blkno =- 1;
blkno = -1;
dlower = cgsblock(&sblock, acg.cg_cgx) - cgbase(&sblock, acg.cg_cgx);
dupper = cgdmin(&sblock, acg.cg_cgx) - cgbase(&sblock, acg.cg_cgx);
dmax = cgbase(&sblock, acg.cg_cgx) + sblock.fs_fpg;