[krb5-auth-dialog] plugins: Fix compile warnings
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] plugins: Fix compile warnings
- Date: Tue, 9 Feb 2021 12:04:53 +0000 (UTC)
commit 86efaac69f98bf2811c4c363eecb0b0a149d4a94
Author: Guido Günther <agx sigxcpu org>
Date: Mon Feb 8 18:06:23 2021 +0100
plugins: Fix compile warnings
Silence warnings triggered by meson build
plugins/ka-plugin-afs.c | 3 +++
plugins/ka-plugin-dummy.c | 5 ++++-
plugins/ka-plugin-gnomelock.c | 4 +++-
plugins/ka-plugin-pam.c | 3 +++
4 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/plugins/ka-plugin-afs.c b/plugins/ka-plugin-afs.c
index ab3af7f..7204080 100644
--- a/plugins/ka-plugin-afs.c
+++ b/plugins/ka-plugin-afs.c
@@ -18,6 +18,9 @@
#include "ka-plugin-afs.h"
#include <gmodule.h>
+/* Plugin entry point */
+G_MODULE_EXPORT KaPlugin *ka_plugin_create (void);
+
int ka_plugin_major_version = KA_PLUGIN_MAJOR_VERSION;
int ka_plugin_minor_version = KA_PLUGIN_MINOR_VERSION;
diff --git a/plugins/ka-plugin-dummy.c b/plugins/ka-plugin-dummy.c
index 45a066c..2c97201 100644
--- a/plugins/ka-plugin-dummy.c
+++ b/plugins/ka-plugin-dummy.c
@@ -18,6 +18,9 @@
#include "ka-plugin-dummy.h"
#include <gmodule.h>
+/* Plugin entry point */
+G_MODULE_EXPORT KaPlugin *ka_plugin_create (void);
+
int ka_plugin_major_version = KA_PLUGIN_MAJOR_VERSION;
int ka_plugin_minor_version = KA_PLUGIN_MINOR_VERSION;
@@ -36,7 +39,7 @@ G_DEFINE_TYPE_WITH_PRIVATE (KaPluginDummy, ka_plugin_dummy, KA_TYPE_PLUGIN)
static void
event_cb (gpointer *applet, gchar *princ, guint when, gpointer user_data)
{
- g_message ("%s %s @%d", user_data, princ, when);
+ g_message ("%s %s @%d", (gchar*)user_data, princ, when);
}
static void
diff --git a/plugins/ka-plugin-gnomelock.c b/plugins/ka-plugin-gnomelock.c
index 78c2ecb..8bfb248 100644
--- a/plugins/ka-plugin-gnomelock.c
+++ b/plugins/ka-plugin-gnomelock.c
@@ -20,6 +20,9 @@
#include <gmodule.h>
#include <gio/gio.h>
+/* Plugin entry point */
+G_MODULE_EXPORT KaPlugin *ka_plugin_create (void);
+
int ka_plugin_major_version = KA_PLUGIN_MAJOR_VERSION;
int ka_plugin_minor_version = KA_PLUGIN_MINOR_VERSION;
@@ -95,7 +98,6 @@ ka_plugin_gnomelock_activate (KaPlugin *self, KaApplet *applet)
static void
ka_plugin_gnomelock_deactivate (KaPlugin *self, KaApplet *applet)
{
- int i;
KaPluginGnomeLockPrivate *priv =
ka_plugin_gnomelock_get_instance_private (KA_PLUGIN_GNOMELOCK (self));
diff --git a/plugins/ka-plugin-pam.c b/plugins/ka-plugin-pam.c
index 8032d79..15e10e1 100644
--- a/plugins/ka-plugin-pam.c
+++ b/plugins/ka-plugin-pam.c
@@ -20,6 +20,9 @@
#include <security/pam_appl.h>
+/* Plugin entry point */
+G_MODULE_EXPORT KaPlugin *ka_plugin_create (void);
+
int ka_plugin_major_version = KA_PLUGIN_MAJOR_VERSION;
int ka_plugin_minor_version = KA_PLUGIN_MINOR_VERSION;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]