aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fossil/check.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2025-07-25 11:20:03 -0400
committerDan Cross <cross@gajendra.net>2025-07-25 11:20:03 -0400
commit655f7c3184fe2f1eb039211e689c2fe037fa8320 (patch)
treea4b1fc2d8979ffb10ad0647a394331df628ad215 /src/cmd/fossil/check.c
parent5a9ced10ee6abaecb129b0440e211253395588c3 (diff)
all: clean up misleading indentation warnings
Misleading indentation warnings are actually useful, as they will occasionally reveal actual bugs (cf the apple `goto fail` security bug from a few years ago). Newer versions of clang (at least) are more aggressive about warnings in this regard, which has exposed a few warnings that are annoying. However, they are easy to address.
Diffstat (limited to 'src/cmd/fossil/check.c')
-rw-r--r--src/cmd/fossil/check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/fossil/check.c b/src/cmd/fossil/check.c
index 6aa90fc7..beec846b 100644
--- a/src/cmd/fossil/check.c
+++ b/src/cmd/fossil/check.c
@@ -293,7 +293,7 @@ walkEpoch(Fsck *chk, Block *b, uchar score[VtScoreSize], int type, u32int tag,
}
if(!(e.flags & VtEntryActive))
continue;
-if(0) fprint(2, "%x[%d] tag=%x snap=%d score=%V\n",
+ if(0)fprint(2, "%x[%d] tag=%x snap=%d score=%V\n",
addr, i, e.tag, e.snap, e.score);
ep = epoch;
if(e.snap != 0){
@@ -599,7 +599,7 @@ chkDir(Fsck *chk, char *name, Source *source, Source *meta)
name, o);
continue;
}
-if(0) fprint(2, "source %V:%d block %d addr %d\n", source->score,
+ if(0)fprint(2, "source %V:%d block %d addr %d\n", source->score,
source->offset, o, b->addr);
if(b->addr != NilBlock && getBit(chk->errmap, b->addr))
warn(chk, "previously reported error in block %ux is in %s",