Skip to content

Fix Xcode 26.3 compilation#596

Open
kenstir wants to merge 2 commits intozxingify:masterfrom
kenstir:fix/xcode-26
Open

Fix Xcode 26.3 compilation#596
kenstir wants to merge 2 commits intozxingify:masterfrom
kenstir:fix/xcode-26

Conversation

@kenstir
Copy link
Copy Markdown
Contributor

@kenstir kenstir commented Apr 8, 2026

Summary

Fix building with Xcode 26.3 and Carthage

Detailed Changes

Do not treat warnings as errors.

This seems the easiest way to disable the many warnings of:
"Variable length array folded to constant array as an extension".

I considered alternatives:

  • Replacing 'const int' with '#define'. That was not sufficient because
    it causes link errors. These could in turn have been fixed but then the
    surface area widens considerably.
  • Disabling this specific warning via #pragma. I was not able to make it
    work, and this too widened the surface area of the patch, because each
    occurrence required a #pragma push, #pragma, and #pragma pop.

kenstir added 2 commits April 7, 2026 20:53
This seems the easiest way to disable the warning
"Variable length array folded to constant array as an extension".
Changing the code requires multiple similar surgeries.  You cannot
simply replace 'const int' with '#define', because that causes link
errors.  An attempt to disable this specific warning via #pragma
did not work for me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant