Closed
Description
At macOS 12.5.1 with Apple clang version 14.0.0 (clang-1400.0.29.202)
./Modules/readline.c:1252:21: warning: incompatible function pointer types assigning to 'Function *' (aka 'int (*)(const char *, int)') from 'int (void)' [-Wincompatible-function-pointer-types]
rl_startup_hook = on_startup_hook;
^ ~~~~~~~~~~~~~~~
./Modules/readline.c:1254:23: warning: incompatible function pointer types assigning to 'Function *' (aka 'int (*)(const char *, int)') from 'int (void)' [-Wincompatible-function-pointer-types]
rl_pre_input_hook = on_pre_input_hook;
Linked PRs
- [WIP] gh-105323: Suppress function pointer warning by type casting #106284
- gh-105323: Add special workround for macOS default editline #108633
- gh-105323: Update readline module to detect apple editline variant #108665
- gh-105323: Remove
WITH_APPLE_EDITLINE
to use the same declaration for all editline #112513