diff options
author | Steve Zesch <[email protected]> | 2012-11-20 20:57:16 -0800 |
---|---|---|
committer | Steve Zesch <[email protected]> | 2012-11-20 20:57:16 -0800 |
commit | 3ba516419041962944da9f9bdf0cb55810a2ad02 (patch) | |
tree | 620d5fa2f8be7c9a65313c6a238cc349e6faaad4 /src/ui | |
parent | d72b5f2a0bbd035a98979c3519de90a194f67e05 (diff) | |
parent | 3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6 (diff) | |
download | marco-3ba516419041962944da9f9bdf0cb55810a2ad02.tar.bz2 marco-3ba516419041962944da9f9bdf0cb55810a2ad02.tar.xz |
Merge pull request #26 from sbalneav/master
Deprecations and warnings
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/testgradient.c | 8 | ||||
-rw-r--r-- | src/ui/themewidget.c | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/ui/testgradient.c b/src/ui/testgradient.c index 4def3b07..0de2510c 100644 --- a/src/ui/testgradient.c +++ b/src/ui/testgradient.c @@ -23,6 +23,12 @@ #include "gradient.h" #include <gtk/gtk.h> +#ifdef __GNUC__ +#define UNUSED_VARIABLE __attribute__ ((unused)) +#else +#define UNUSED_VARIABLE +#endif + typedef void (* RenderGradientFunc) (GdkDrawable *drawable, cairo_t *cr, int width, @@ -294,7 +300,7 @@ create_gradient_window (const char *title, static void meta_gradient_test (void) { - GtkWidget *window; + GtkWidget UNUSED_VARIABLE *window; window = create_gradient_window ("Simple vertical", render_vertical_func); diff --git a/src/ui/themewidget.c b/src/ui/themewidget.c index 6bbb05a1..3489618a 100644 --- a/src/ui/themewidget.c +++ b/src/ui/themewidget.c @@ -24,6 +24,12 @@ #include "themewidget.h" #include <math.h> +#ifdef __GNUC__ +#define UNUSED_VARIABLE __attribute__ ((unused)) +#else +#define UNUSED_VARIABLE +#endif + static void meta_area_class_init (MetaAreaClass *klass); static void meta_area_init (MetaArea *area); static void meta_area_size_request (GtkWidget *widget, @@ -64,7 +70,7 @@ static void meta_area_class_init (MetaAreaClass *class) { GObjectClass *gobject_class = G_OBJECT_CLASS (class); - GtkObjectClass *object_class; + GtkObjectClass UNUSED_VARIABLE *object_class; GtkWidgetClass *widget_class; object_class = (GtkObjectClass*) class; |