pidgin/pidgin

Mark a number of unused parameters as such

16 months ago, Gary Kramlich
382ecbbf0080
Parents fcc390443714
Children 65c7b6d95868
Mark a number of unused parameters as such

Testing Done:
Compiled and Windows and verified the warnings were gone.

Reviewed at https://reviews.imfreedom.org/r/2247/
--- a/libpurple/win32/win32dep.c Sun Feb 19 17:56:40 2023 -0600
+++ b/libpurple/win32/win32dep.c Sun Feb 19 17:57:16 2023 -0600
@@ -631,7 +631,10 @@
/* DLL initializer */
/* suppress gcc "no previous prototype" warning */
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
+BOOL WINAPI
+DllMain(HINSTANCE hinstDLL, G_GNUC_UNUSED DWORD fdwReason,
+ G_GNUC_UNUSED LPVOID lpvReserved)
+{
libpurpledll_hInstance = hinstDLL;
return TRUE;
}
--- a/pidgin/gtkidle.c Sun Feb 19 17:56:40 2023 -0600
+++ b/pidgin/gtkidle.c Sun Feb 19 17:57:16 2023 -0600
@@ -50,7 +50,7 @@
*****************************************************************************/
#ifdef _WIN32
static time_t
-pidgin_idle_get_idle_time(PurpleIdleUi *ui) {
+pidgin_idle_get_idle_time(G_GNUC_UNUSED PurpleIdleUi *ui) {
return (GetTickCount() - winpidgin_get_lastactive()) / 1000;
}
#endif /* _WIN32 */