From a1ac8216784aff1f323f33c5af3798c7ccdcc8ad Mon Sep 17 00:00:00 2001 From: David Richardson Date: Thu, 20 Aug 2026 15:31:45 -0600 Subject: [PATCH] Fix build warnings in _CPTableTextAttachment Replaced the CPTextView.j import with forward declarations for CPTextView and CPTextContainer (the latter previously reached via the removed import). The previous import graph created a circular dependency (_CPTableTextAttachment.j -> CPTextView.j -> _CPRTFParser.j / _CPRTFProducer.j -> _CPTableTextAttachment.j). This caused the legacy compiler to emit a class registration warning during clean builds, as the class was unregistered at the time of resolution. Incremental builds masked this warning via cached symbol tables. Using forward declarations breaks the cycle and ensures warning-free clean and incremental builds. --- AppKit/CPTextView/_CPTableTextAttachment.j | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPTextView/_CPTableTextAttachment.j b/AppKit/CPTextView/_CPTableTextAttachment.j index a395a31a4..9e7d3daed 100644 --- a/AppKit/CPTextView/_CPTableTextAttachment.j +++ b/AppKit/CPTextView/_CPTableTextAttachment.j @@ -19,7 +19,8 @@ */ @import "CPView.j" -@import "CPTextView.j" +@class CPTextView; +@class CPTextContainer; @import "CPTextField.j" @import