summaryrefslogtreecommitdiff
path: root/capplet
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-11-13 21:44:26 -0600
committerScott Balneaves <[email protected]>2012-11-13 21:44:26 -0600
commitdee0e9ab8f63d1b022a7ac011a921db48acc1cd7 (patch)
treef96d65ab4c9c2bbd8040e62f77a0bb9bc6ad9c74 /capplet
parent933f891732a533179682015e1d194a40293f6c9b (diff)
downloadmate-session-manager-dee0e9ab8f63d1b022a7ac011a921db48acc1cd7.tar.bz2
mate-session-manager-dee0e9ab8f63d1b022a7ac011a921db48acc1cd7.tar.xz
Fix all compile warnings.
Diffstat (limited to 'capplet')
-rw-r--r--capplet/gsm-app-dialog.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/capplet/gsm-app-dialog.c b/capplet/gsm-app-dialog.c
index b8938fd..b4ca56a 100644
--- a/capplet/gsm-app-dialog.c
+++ b/capplet/gsm-app-dialog.c
@@ -35,9 +35,14 @@
#define CAPPLET_COMMENT_ENTRY_WIDGET_NAME "session_properties_comment_entry"
#define CAPPLET_BROWSE_WIDGET_NAME "session_properties_browse_button"
-
#define GSM_APP_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GSM_TYPE_APP_DIALOG, GsmAppDialogPrivate))
+#ifdef __GNUC__
+#define UNUSED_VARIABLE __attribute__ ((unused))
+#else
+#define UNUSED_VARIABLE
+#endif
+
struct GsmAppDialogPrivate
{
GtkWidget *name_entry;
@@ -473,7 +478,7 @@ gsm_app_dialog_run (GsmAppDialog *dialog,
GError *error;
char **argv;
int argc;
- gboolean changed;
+ gboolean UNUSED_VARIABLE changed;
name = gsm_app_dialog_get_name (GSM_APP_DIALOG (dialog));
exec = gsm_app_dialog_get_command (GSM_APP_DIALOG (dialog));