summaryrefslogtreecommitdiff
path: root/src/ui/testgradient.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-11-20 22:50:33 -0600
committerScott Balneaves <[email protected]>2012-11-20 22:50:33 -0600
commit3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6 (patch)
tree620d5fa2f8be7c9a65313c6a238cc349e6faaad4 /src/ui/testgradient.c
parentd72b5f2a0bbd035a98979c3519de90a194f67e05 (diff)
downloadmarco-3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6.tar.bz2
marco-3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6.tar.xz
Fix deprecations and compile warnings. Clean compile
Diffstat (limited to 'src/ui/testgradient.c')
-rw-r--r--src/ui/testgradient.c8
1 files changed, 7 insertions, 1 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);