summaryrefslogtreecommitdiff
path: root/src/dlg-add-folder.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-11-22 21:30:10 -0600
committerScott Balneaves <[email protected]>2012-11-22 21:30:10 -0600
commit6cab8b63ebbf27525b53cf75ff18d5811fa2d39a (patch)
treede0b4c14457c00003ca8c09a3dc781b423524c34 /src/dlg-add-folder.c
parentcee6f9ff77c3c54f5524a7e725183e93e32a8ada (diff)
downloadengrampa-6cab8b63ebbf27525b53cf75ff18d5811fa2d39a.tar.bz2
engrampa-6cab8b63ebbf27525b53cf75ff18d5811fa2d39a.tar.xz
Fix deprecations and warnings
Diffstat (limited to 'src/dlg-add-folder.c')
-rw-r--r--src/dlg-add-folder.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dlg-add-folder.c b/src/dlg-add-folder.c
index 1e80305..cac8c7f 100644
--- a/src/dlg-add-folder.c
+++ b/src/dlg-add-folder.c
@@ -34,6 +34,12 @@
#include "gtk-utils.h"
#include "preferences.h"
+#ifdef __GNUC__
+#define UNUSED_VARIABLE __attribute__ ((unused))
+#else
+#define UNUSED_VARIABLE
+#endif
+
typedef struct {
FrWindow *window;
GSettings *settings;
@@ -94,7 +100,7 @@ file_sel_response_cb (GtkWidget *widget,
GtkFileChooser *file_sel = GTK_FILE_CHOOSER (widget);
FrWindow *window = data->window;
char *selected_folder;
- gboolean update, recursive, follow_links;
+ gboolean update, UNUSED_VARIABLE recursive, follow_links;
const char *include_files;
const char *exclude_files;
const char *exclude_folders;