Skip to content

Incompatible function pointer types#5

Open
atupone wants to merge 1 commit into
flightaware:masterfrom
atupone:incompatibleFunctionPointer
Open

Incompatible function pointer types#5
atupone wants to merge 1 commit into
flightaware:masterfrom
atupone:incompatibleFunctionPointer

Conversation

@atupone

@atupone atupone commented Feb 24, 2024

Copy link
Copy Markdown

This fix the gcc warning -Wincompatible-pointer-types
and allow building with clang-17

@atupone atupone force-pushed the incompatibleFunctionPointer branch from 787bcd0 to c1bc95a Compare February 24, 2024 20:07
@ryandesign

Copy link
Copy Markdown

Yes, this is needed when using libxml2 >= 2.12.0 but is wrong when using earlier versions of libxml2.

The most portable solution is to detect the libxml2 version at compile time and use the right construct for that version. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279968

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