CPPFunction is already deprecated since quite some time, but now gcc 15 turns it also into an error when casting to that type. ../../libcli/smbreadline/smbreadline.c: In function ‘smb_readline’: ../../libcli/smbreadline/smbreadline.c:139:17: warning: ‘CPPFunction’ is deprecated [-Wdeprecated-declarations] 139 | rl_attempted_completion_function = RL_COMPLETION_CAST completion_fn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../libcli/smbreadline/smbreadline.c:139:50: error: assignment to ‘char ** (*)(const char *, int, int)’ from incompatible pointer type ‘char ** (*)(void)’ [-Wincompatible-pointer-types] 139 | rl_attempted_completion_function = RL_COMPLETION_CAST completion_fn; | ^
This bug was referenced in samba master: dbff53f77680f0ccd022f2d864ba6ae7585a34b7 9aa5c43315d83c19514251a11c4fba5a137f2821
Created attachment 18536 [details] patch for 4.21
Comment on attachment 18536 [details] patch for 4.21 LGTM
Jule, please apply the patch to 4.21. Thanks!
Pushed to autobuild-v4-21-test.
This bug was referenced in samba v4-21-test: 52f4e853c0b215c52dd615e02360e3d71d354464 81fc67cce2a076236a82ab5336ed3a9260f12af1
Closing out bug report. Thanks!