[gnome-software] trivial: Fix several issues with -Wno-discarded-qualifiers
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix several issues with -Wno-discarded-qualifiers
- Date: Thu, 25 Aug 2016 11:34:41 +0000 (UTC)
commit 34deda20aa1c7a8224757232967ad2824d672bd2
Author: Richard Hughes <richard hughsie com>
Date: Thu Aug 25 11:38:23 2016 +0100
trivial: Fix several issues with -Wno-discarded-qualifiers
src/plugins/gs-desktop-common.h | 2 +-
src/plugins/gs-plugin-desktop-menu-path.c | 4 ++--
src/plugins/gs-plugin-snap.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/gs-desktop-common.h b/src/plugins/gs-desktop-common.h
index db78c4c..3fb94e9 100644
--- a/src/plugins/gs-desktop-common.h
+++ b/src/plugins/gs-desktop-common.h
@@ -34,7 +34,7 @@ typedef struct {
typedef struct {
const gchar *id;
- GsDesktopMap *mapping;
+ const GsDesktopMap *mapping;
const gchar *name;
const gchar *icon;
const gchar *key_colors;
diff --git a/src/plugins/gs-plugin-desktop-menu-path.c b/src/plugins/gs-plugin-desktop-menu-path.c
index c0d6e38..63a098d 100644
--- a/src/plugins/gs-plugin-desktop-menu-path.c
+++ b/src/plugins/gs-plugin-desktop-menu-path.c
@@ -72,9 +72,9 @@ gs_plugin_refine_app (GsPlugin *plugin,
/* find a top level category the app has */
msdata = gs_desktop_get_data ();
for (i = 0; !found && msdata[i].id != NULL; i++) {
- GsDesktopData *data = &msdata[i];
+ const GsDesktopData *data = &msdata[i];
for (j = 0; !found && data->mapping[j].id != NULL; j++) {
- GsDesktopMap *map = &data->mapping[j];
+ const GsDesktopMap *map = &data->mapping[j];
if (g_strcmp0 (map->id, "all") == 0)
continue;
if (g_strcmp0 (map->id, "featured") == 0)
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index ae2387b..87c73f5 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -115,7 +115,7 @@ static void
get_macaroon (GsPlugin *plugin, gchar **macaroon, gchar ***discharges)
{
GsAuth *auth;
- gchar *serialized_macaroon;
+ const gchar *serialized_macaroon;
g_autoptr(GVariant) macaroon_variant = NULL;
g_autoptr (GError) error_local = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]