From 1b04d45f26f5de7c53d0a189697c92cfde7f0fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Wed, 4 Feb 2026 18:53:39 +0100 Subject: [PATCH] fix: ignore clang extension usage in ObjC (#8164) * fix: ignore clang extension usage in ObjC * Code review: adopt `kMaxCells` (324) directly. --- macosx/PiecesView.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/PiecesView.mm b/macosx/PiecesView.mm index ae2acbb9c..eda685d4e 100644 --- a/macosx/PiecesView.mm +++ b/macosx/PiecesView.mm @@ -184,12 +184,12 @@ typedef struct PieceInfo if (numCells > 0) { self.image = [NSImage imageWithSize:self.bounds.size flipped:NO drawingHandler:^BOOL(NSRect /*dstRect*/) { - NSRect cFillRects[numCells]; + NSRect cFillRects[kMaxCells]; for (int i = 0; i < numCells; ++i) { cFillRects[i] = cellBounds[i].rectValue; } - NSColor* cFillColors[numCells]; + NSColor* cFillColors[kMaxCells]; for (int i = 0; i < numCells; ++i) { cFillColors[i] = cellColors[i];