Skip to content

Deal with new warnings in Clang 21 / Xcode 26.4#290

Merged
snej merged 2 commits intomasterfrom
fix/more-clang-warnings
Apr 2, 2026
Merged

Deal with new warnings in Clang 21 / Xcode 26.4#290
snej merged 2 commits intomasterfrom
fix/more-clang-warnings

Conversation

@snej
Copy link
Copy Markdown
Contributor

@snej snej commented Mar 27, 2026

Every Clang release adds new warnings, which turn into errors in our LITECORE_WARNINGS_HARDCORE build setting (and sometimes in Xcode builds too.) Some warnings I've disabled in the config, some I've fixed in source like

  • Unnecessary semicolons
  • Initializing an enum with 0
  • Unnecessary 'virtual' on methods in a final class
  • Implicit fallthrough between switch cases
  • Some implicit int/float comparisons, although there were a lot more and I had to suppress the warning in the end
  • A weird one in SmallVectorBase.hh that warned that the MS ABI wouldn't pack bitfields properly unless I made them the same type
  • Const string arrays not declared constexpr

@snej snej merged commit ea03d7e into master Apr 2, 2026
5 checks passed
@snej snej deleted the fix/more-clang-warnings branch April 2, 2026 19:49
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.

2 participants