Bugfix: Fixes #299, Unable to compile desktop package

This commit is contained in:
Rory Fewell
2024-05-11 16:54:36 +01:00
parent 55ae638364
commit 8e619895ae
2 changed files with 13 additions and 1 deletions

View File

@@ -24,6 +24,18 @@
*/
#define WINTC_UNUSED(arg) __attribute__((unused)) arg
/**
* @def WINTC_DEBUG_ONLY(arg)
*
* Marks a parameter as only used in chcked builds, so the compiler does not
* complain for free builds.
*/
#ifdef WINTC_CHECKED
#define WINTC_DEBUG_ONLY(arg) arg
#else
#define WINTC_DEBUG_ONLY(arg) WINTC_UNUSED(arg)
#endif
/**
* @def WINTC_RETURN_IF_FAIL(cond)
*

View File

@@ -257,7 +257,7 @@ static void wintc_desktop_settings_set_wallpaper_path(
//
static void regkey_changed_desktop_cb(
WINTC_UNUSED(WinTCRegistry* registry),
const gchar* key_path,
WINTC_DEBUG_ONLY(const gchar* key_path),
const gchar* value_name,
GVariant* value_variant,
WINTC_UNUSED(gpointer user_data)