Skip to content

Fix build with newer Apple clang#13157

Open
maskit wants to merge 1 commit into
apache:9.2.xfrom
maskit:fix_build_92x
Open

Fix build with newer Apple clang#13157
maskit wants to merge 1 commit into
apache:9.2.xfrom
maskit:fix_build_92x

Conversation

@maskit
Copy link
Copy Markdown
Member

@maskit maskit commented May 12, 2026

Four issues from newer Apple clang (version 21):

  1. TextView.h: -Wdeprecated-literal-operator flags the whitespace between "" and the suffix identifier in user-defined literal operator declarations. Remove the space in operator"" _tv and operator"" _sv.

  2. configure.ac: the version check added in PR Make 9.2.x buildable on macOS 26 #12834 only applied -Wno-cast-function-type-mismatch when Apple clang was exactly version 17, so the flag was silently skipped on 21+. Extend the check to match version >= 17.

  3. CryptoHash.h: memset/memcpy on non-trivially-copyable union type trip -Wnontrivial-memcall. Cast this to void *.

  4. HostStatus.cc: same issue with bzero on HostStatRec.

Four issues from newer Apple clang (version 21):

1. TextView.h: -Wdeprecated-literal-operator flags the whitespace
   between `""` and the suffix identifier in user-defined literal
   operator declarations. Remove the space in `operator"" _tv` and
   `operator"" _sv`.

2. configure.ac: the version check added in PR apache#12834 only applied
   -Wno-cast-function-type-mismatch when Apple clang was exactly
   version 17, so the flag was silently skipped on 21+. Extend the
   check to match version >= 17.

3. CryptoHash.h: memset/memcpy on non-trivially-copyable union type
   trip -Wnontrivial-memcall. Cast `this` to `void *`.

4. HostStatus.cc: same issue with bzero on HostStatRec.
@maskit maskit self-assigned this May 12, 2026
@maskit maskit requested review from bryancall and zwoop as code owners May 12, 2026 22:27
@maskit maskit added the Build work related to build configuration or environment label May 12, 2026
@maskit maskit requested a review from ezelkow1 May 12, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build work related to build configuration or environment

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

1 participant