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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user