Fix invalid prototypes that will break with C23

Review Request #3776 — Created Jan. 21, 2025 and submitted

Information

pidgin/pidgin
release-2.x.y

Reviewers

Using function() used to mean "any number" of parameters, but as of C23, this
is now aligned with C++ and means zero parameters. This will cause build
failures due to mismatched function parameters in GCC15, which switched to C23
by default.

Related to PIDGIN-18028, though I guess Gentoo didn't actually have the problem as they disabled Zephyr.

Compiled with GCC15 without error.

Summary ID
Fix invalid prototypes that will break with C23
Using `function()` used to mean "any number" of parameters, but as of C23, this is now aligned with C++ and means _zero_ parameters. This will cause build failures due to mismatched function parameters in GCC15, which switched to C23 by default.
2057622485649b57a6428cea571dae7ff8e3d13e
grim
  1. Great work, thanks!!

  2. 
      
grim
Review request changed
Status:
Completed