Permalink
Browse files

Add unused attribute macro to please gcc

  • Loading branch information...
1 parent 411e6df commit 3014208cf97ae0895ee8b5bac8150dc7f4af2abc @atj committed Mar 30, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/ssh-askpass-fullscreen.c
@@ -34,6 +34,12 @@
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
+#ifdef __GNUC__
+#define ATTR_UNUSED __attribute__((unused))
+#else
+#define ATTR_UNUSED
+#endif
+
/* XPM */
static const char *ocean_stripes[] = {
/* columns rows colors chars-per-pixel */
@@ -199,7 +205,7 @@ create_tile_pixbuf (GdkPixbuf *dest_pixbuf,
}
void
-enter_callback(GtkWidget *widget,
+enter_callback(GtkWidget *widget ATTR_UNUSED,
GtkWidget *entryw)
{
const gchar *passphrase;

0 comments on commit 3014208

Please sign in to comment.