pidgin/win32/resource.h

Tue, 21 Jan 2025 10:49:29 -0600

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Tue, 21 Jan 2025 10:49:29 -0600
branch
release-2.x.y
changeset 43154
10ae9c0f0cbf
parent 16808
c0736ad72fd6
child 18068
b6554e3c8224
permissions
-rw-r--r--

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.

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

Testing Done:
Compiled with GCC15 without error.

Reviewed at https://reviews.imfreedom.org/r/3776/

#define PIDGIN_ICON			104
#define PIDGIN_TRAY_AVAILABLE_4BIT	105
#define PIDGIN_TRAY_AWAY_4BIT		106
#define PIDGIN_TRAY_BUSY_4BIT		107
#define PIDGIN_TRAY_XA_4BIT		108
#define PIDGIN_TRAY_OFFLINE_4BIT	109
#define PIDGIN_TRAY_CONNECTING_4BIT	110
#define PIDGIN_TRAY_PENDING_4BIT	111
#define PIDGIN_TRAY_INVISIBLE_4BIT      112

mercurial