gnome-settings-daemon/gnome-settings-daemon-bgo793253.patch

45 lines
1.5 KiB
Diff

Index: gnome-settings-daemon-3.32.1/plugins/media-keys/gsd-media-keys-manager.c
===================================================================
--- gnome-settings-daemon-3.32.1.orig/plugins/media-keys/gsd-media-keys-manager.c
+++ gnome-settings-daemon-3.32.1/plugins/media-keys/gsd-media-keys-manager.c
@@ -341,6 +341,7 @@ get_key_string (MediaKey *key)
return g_strdup_printf ("custom:%s", key->custom_path);
else
g_assert_not_reached ();
+ return NULL;
}
static char *
@@ -359,6 +360,7 @@ get_binding (GsdMediaKeysManager *manage
return g_settings_get_string (settings, "binding");
} else
g_assert_not_reached ();
+ return NULL;
}
static void
Index: gnome-settings-daemon-3.32.1/plugins/rfkill/rfkill-glib.c
===================================================================
--- gnome-settings-daemon-3.32.1.orig/plugins/rfkill/rfkill-glib.c
+++ gnome-settings-daemon-3.32.1/plugins/rfkill/rfkill-glib.c
@@ -269,6 +269,7 @@ op_to_string (unsigned int op)
return "CHANGE_ALL";
default:
g_assert_not_reached ();
+ return "NULL";
}
}
Index: gnome-settings-daemon-3.32.1/plugins/xsettings/xsettings-manager.c
===================================================================
--- gnome-settings-daemon-3.32.1.orig/plugins/xsettings/xsettings-manager.c
+++ gnome-settings-daemon-3.32.1/plugins/xsettings/xsettings-manager.c
@@ -269,6 +269,7 @@ xsettings_get_typecode (GVariant *value)
return XSETTINGS_TYPE_COLOR;
default:
g_assert_not_reached ();
+ return NULL;
}
}