When I build my project I get this warning: Immutable value 'joined15' was never used; consider replacing with '_' or removing it
The variable mentioned only exists inside a block of code that is commented out using /* ... */
If I navigate to the Swift file that contains the warning, or click on the warning in the menu bar the warning is removed.
This appears to be a bug in XCode, but is there any way to avoid this warning appearing every time I build my project?
The code is commented out and the variable is never created, set or read. It only exists inside the comment. I’ve tried removing and re-adding the comment symbols, but the warning still comes up every time I build the project. I’m using XCode Version 15.2 (15C500b) building for iPhone 15 Pro.