From 655f7c3184fe2f1eb039211e689c2fe037fa8320 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Fri, 25 Jul 2025 11:20:03 -0400 Subject: 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. --- src/cmd/fossil/check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd') 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", -- cgit v1.2.3