Skip to content

fix function_casts_as_integer warning#3189

Open
Skgland wants to merge 2 commits intomthom:masterfrom
Skgland:fix-function_casts_as_integer
Open

fix function_casts_as_integer warning#3189
Skgland wants to merge 2 commits intomthom:masterfrom
Skgland:fix-function_casts_as_integer

Conversation

@Skgland
Copy link
Contributor

@Skgland Skgland commented Nov 27, 2025

Comparing addresses of function pointers is brittle.

Functions may be duplicated resulting in function pointers to the same function to compare !=.
Functions may be merged/de-duplicated resulting in function pointers to different function to compare ==.

The later shouldn't be relevant here as the function differ in behavior, but mentioning it for completeness.

@Skgland Skgland marked this pull request as draft November 27, 2025 19:11
@Skgland
Copy link
Contributor Author

Skgland commented Nov 27, 2025

Fixed one instance I missed, ready for review.

@Skgland Skgland marked this pull request as ready for review November 27, 2025 19:26
Comparing addresses of function pointers is brittle.

Functions may be duplicated resulting in function pointers to the same function to compare !=.
Functions may be merged/de-duplicated resulting in function pointers to different function to compare ==.

The later shouldn't be relevant here as the function differ in behavior, but mentioning it for completeness.
@Skgland Skgland force-pushed the fix-function_casts_as_integer branch from 7303e65 to 7c3ffd0 Compare December 4, 2025 22:35
@Skgland
Copy link
Contributor Author

Skgland commented Dec 4, 2025

resolved merged conflicts, again ready for review assuming CI agrees with 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.

2 participants