Broadway: Fix various compiler warnings

Mostly missing declarations and unused functions.
This commit is contained in:
Matthias Clasen 2014-09-05 19:39:05 -04:00
parent e066e3b9aa
commit 24b8499833
8 changed files with 13 additions and 28 deletions

View File

@ -258,7 +258,7 @@ encode_pixel (struct encoder *encoder, guint32 color, guint32 prev_color)
}
}
void
static void
encoder_flush (struct encoder *encoder)
{
encode_run (encoder);

View File

@ -120,6 +120,8 @@ struct BroadwayWindow {
static void broadway_server_resync_windows (BroadwayServer *server);
static GType broadway_server_get_type (void);
G_DEFINE_TYPE (BroadwayServer, broadway_server, G_TYPE_OBJECT)
static void
@ -752,16 +754,10 @@ broadway_server_flush (BroadwayServer *server)
}
}
void
broadway_server_sync (BroadwayServer *server)
{
broadway_server_flush (server);
}
#if 0
/* TODO: This is not used atm, is it needed? */
/* Note: This may be called while handling a message (i.e. sorta recursively) */
BroadwayInputMsg *
static BroadwayInputMsg *
broadway_server_block_for_input (BroadwayServer *server, char op,
guint32 serial, gboolean remove_message)
{
@ -814,6 +810,7 @@ broadway_server_block_for_input (BroadwayServer *server, char op,
queue_process_input_at_idle (server);
}
}
#endif
static void *
map_named_shm (char *name, gsize size)

View File

@ -124,7 +124,7 @@ send_reply (BroadwayClient *client,
}
}
void
static void
add_client_serial_mapping (BroadwayClient *client,
guint32 client_serial,
guint32 daemon_serial)
@ -154,7 +154,7 @@ add_client_serial_mapping (BroadwayClient *client,
/* Returns the latest seen client serial at the time we sent
a daemon request to the browser with a specific daemon serial */
guint32
static guint32
get_client_serial (BroadwayClient *client, guint32 daemon_serial)
{
BroadwaySerialMapping *map;

View File

@ -53,6 +53,8 @@ struct _GdkBroadwayServerClass
static gboolean input_available_cb (gpointer stream, gpointer user_data);
static GType gdk_broadway_server_get_type (void);
G_DEFINE_TYPE (GdkBroadwayServer, gdk_broadway_server, G_TYPE_OBJECT)
static void

View File

@ -260,11 +260,6 @@ gdk_broadway_display_finalize (GObject *object)
G_OBJECT_CLASS (gdk_broadway_display_parent_class)->finalize (object);
}
void
_gdk_broadway_display_make_default (GdkDisplay *display)
{
}
static void
gdk_broadway_display_notify_startup_complete (GdkDisplay *display,
const gchar *startup_id)

View File

@ -46,6 +46,8 @@ typedef struct _GdkKeymapClass GdkBroadwayKeymapClass;
#define GDK_BROADWAY_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_BROADWAY_KEYMAP, GdkBroadwayKeymap))
#define GDK_IS_BROADWAY_KEYMAP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_BROADWAY_KEYMAP))
static GType gdk_broadway_keymap_get_type (void);
typedef struct _DirectionCacheEntry DirectionCacheEntry;
struct _GdkBroadwayKeymap

View File

@ -19,6 +19,7 @@
#include <gdk/gdktestutils.h>
#include <gdk/gdkkeysyms.h>
#include <gdk/gdkinternals.h>
#include "gdkprivate-broadway.h"
void
_gdk_broadway_window_sync_rendering (GdkWindow *window)

View File

@ -662,18 +662,6 @@ gdk_window_broadway_set_device_cursor (GdkWindow *window,
GDK_DEVICE_GET_CLASS (device)->set_window_cursor (device, window, cursor);
}
GdkCursor *
_gdk_broadway_window_get_cursor (GdkWindow *window)
{
GdkWindowImplBroadway *impl;
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
impl = GDK_WINDOW_IMPL_BROADWAY (window->impl);
return impl->cursor;
}
static void
gdk_window_broadway_get_geometry (GdkWindow *window,
gint *x,