aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKentaro Hayashi <kenhys@gmail.com>2020-08-04 16:16:41 +0900
committerRobert Tari <robert@tari.in>2020-08-04 14:03:23 +0200
commit305b9442bfc70e5d4371bf42a91a6c79d5000117 (patch)
tree21021941f49b7c58d5325b2d6701d075373533ef /src
parent367286f6be612e0ac3419b4920d8cc7bf47d8ed4 (diff)
downloadayatana-indicator-printers-305b9442bfc70e5d4371bf42a91a6c79d5000117.tar.gz
ayatana-indicator-printers-305b9442bfc70e5d4371bf42a91a6c79d5000117.tar.bz2
ayatana-indicator-printers-305b9442bfc70e5d4371bf42a91a6c79d5000117.zip
Fix multiple definitions linker error with GCC 10
It fixes the follwing error: /usr/bin/ld: ayatana_indicator_printers_service-indicator-printer-state-notifier.o:/workspace/ayatana-indicator-printers/src/indicator-printer-state-notifier.c:55: multiple definition of `properties'; ayatana_indicator_printers_service-indicator-printers-menu.o:/workspace/ayatana-indicator-printers/src/indicator-printers-menu.c:45: first defined here
Diffstat (limited to 'src')
-rw-r--r--src/indicator-printer-state-notifier.c2
-rw-r--r--src/indicator-printers-menu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/indicator-printer-state-notifier.c b/src/indicator-printer-state-notifier.c
index 9d3e9f2..c83ba82 100644
--- a/src/indicator-printer-state-notifier.c
+++ b/src/indicator-printer-state-notifier.c
@@ -52,7 +52,7 @@ enum {
NUM_PROPERTIES
};
-GParamSpec *properties[NUM_PROPERTIES];
+static GParamSpec *properties[NUM_PROPERTIES];
static void
diff --git a/src/indicator-printers-menu.c b/src/indicator-printers-menu.c
index 636cb1e..69394df 100644
--- a/src/indicator-printers-menu.c
+++ b/src/indicator-printers-menu.c
@@ -42,7 +42,7 @@ enum {
NUM_PROPERTIES
};
-GParamSpec *properties[NUM_PROPERTIES];
+static GParamSpec *properties[NUM_PROPERTIES];
static void