diff options
author | dim <dim@FreeBSD.org> | 2012-03-12 11:15:44 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-03-12 11:15:44 +0000 |
commit | b7ae1f66589c01173a7705c4b7645abb5d6592c3 (patch) | |
tree | 74e42a961d15b24a0098f2e0fdb971a32e31616d /sbin/growfs | |
parent | c2c20240edfb27db7219b74681fa5f2038f13246 (diff) | |
download | FreeBSD-src-b7ae1f66589c01173a7705c4b7645abb5d6592c3.zip FreeBSD-src-b7ae1f66589c01173a7705c4b7645abb5d6592c3.tar.gz |
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.
Diffstat (limited to 'sbin/growfs')
-rw-r--r-- | sbin/growfs/growfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c index 224df4a..9226783 100644 --- a/sbin/growfs/growfs.c +++ b/sbin/growfs/growfs.c @@ -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; |