mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-04 15:13:58 +01:00
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:
parent
addfbd03b7
commit
8f061f61db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232858
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user