Skip to content

Conversation

@maskit
Copy link
Member

@maskit maskit commented Jan 27, 2026

Adding -Wno-cast-function-type-mismatch isn't great, but I don't think we should make changes that this check may find, on 9.2.x.

@maskit maskit self-assigned this Jan 27, 2026
@maskit maskit requested a review from bryancall as a code owner January 27, 2026 22:06
@maskit maskit added the Build work related to build configuration or environment label Jan 27, 2026
#include "tscore/ink_config.h"

#ifdef HAVE_SYS_ENDIAN_H
#if !defined(darwin)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old versions of macOS didn't have be64toh and the other functions, but now those are defined on endian.h, and those cause errors due to duplication.

I could add a check for the availability of those functions, but this small change is enough. We don't have this issue on newer codebase.


AC_MSG_CHECKING([for C compiler version])
# Capture the output of the compiler version command
ac_cv_c_compiler_version=`${CC} --version 2>&1 | grep "Apple clang version" | head -n 1 | awk '{print $4}' | cut -d'.' -f1`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is hacky and only works for Apple Clang 17, but I don't think we will need to maintain it for a long time.

@ezelkow1 ezelkow1 added this to the 9.2.12 milestone Jan 29, 2026
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.

2 participants