summaryrefslogtreecommitdiffstats
path: root/src/libmemlayer
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/libmemlayer
parent5a9ced10ee6abaecb129b0440e211253395588c3 (diff)
downloadplan9port-655f7c3184fe2f1eb039211e689c2fe037fa8320.tar.gz
plan9port-655f7c3184fe2f1eb039211e689c2fe037fa8320.zip
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/libmemlayer')
-rw-r--r--src/libmemlayer/draw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libmemlayer/draw.c b/src/libmemlayer/draw.c
index c352a0b2..d6c6c25d 100644
--- a/src/libmemlayer/draw.c
+++ b/src/libmemlayer/draw.c
@@ -64,7 +64,8 @@ memdraw(Memimage *dst, Rectangle r, Memimage *src, Point p0, Memimage *mask, Poi
mask = memopaque;
if(mask->layer){
-if(drawdebug) iprint("mask->layer != nil\n");
+ if(drawdebug)
+ iprint("mask->layer != nil\n");
return; /* too hard, at least for now */
}
@@ -75,7 +76,8 @@ if(drawdebug) iprint("mask->layer != nil\n");
}
if(drawclip(dst, &r, src, &p0, mask, &p1, &srcr, &mr) == 0){
-if(drawdebug) iprint("drawclip dstcr %R srccr %R maskcr %R\n", dst->clipr, src->clipr, mask->clipr);
+ if(drawdebug)
+ iprint("drawclip dstcr %R srccr %R maskcr %R\n", dst->clipr, src->clipr, mask->clipr);
return;
}