mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
Fix warnings when building without verbose mode
This commit is contained in:
parent
bc32655c28
commit
a97cc84b81
@ -185,7 +185,9 @@ meta_stack_op_dump (MetaStackTracker *tracker,
|
|||||||
const char *prefix,
|
const char *prefix,
|
||||||
const char *suffix)
|
const char *suffix)
|
||||||
{
|
{
|
||||||
|
#ifdef WITH_VERBOSE_MODE
|
||||||
const char *window_desc = get_window_desc (tracker, op->any.window);
|
const char *window_desc = get_window_desc (tracker, op->any.window);
|
||||||
|
#endif
|
||||||
|
|
||||||
switch (op->any.type)
|
switch (op->any.type)
|
||||||
{
|
{
|
||||||
@ -220,6 +222,7 @@ meta_stack_op_dump (MetaStackTracker *tracker,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WITH_VERBOSE_MODE
|
||||||
static void
|
static void
|
||||||
stack_dump (MetaStackTracker *tracker,
|
stack_dump (MetaStackTracker *tracker,
|
||||||
GArray *stack)
|
GArray *stack)
|
||||||
@ -235,10 +238,12 @@ stack_dump (MetaStackTracker *tracker,
|
|||||||
meta_topic (META_DEBUG_STACK, "\n");
|
meta_topic (META_DEBUG_STACK, "\n");
|
||||||
meta_pop_no_msg_prefix ();
|
meta_pop_no_msg_prefix ();
|
||||||
}
|
}
|
||||||
|
#endif /* WITH_VERBOSE_MODE */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_stack_tracker_dump (MetaStackTracker *tracker)
|
meta_stack_tracker_dump (MetaStackTracker *tracker)
|
||||||
{
|
{
|
||||||
|
#ifdef WITH_VERBOSE_MODE
|
||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
meta_topic (META_DEBUG_STACK, "MetaStackTracker state\n");
|
meta_topic (META_DEBUG_STACK, "MetaStackTracker state\n");
|
||||||
@ -259,6 +264,7 @@ meta_stack_tracker_dump (MetaStackTracker *tracker)
|
|||||||
stack_dump (tracker, tracker->predicted_stack);
|
stack_dump (tracker, tracker->predicted_stack);
|
||||||
}
|
}
|
||||||
meta_pop_no_msg_prefix ();
|
meta_pop_no_msg_prefix ();
|
||||||
|
#endif /* WITH_VERBOSE_MODE */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -778,7 +778,9 @@ gboolean
|
|||||||
meta_wayland_keyboard_handle_event (MetaWaylandKeyboard *keyboard,
|
meta_wayland_keyboard_handle_event (MetaWaylandKeyboard *keyboard,
|
||||||
const ClutterKeyEvent *event)
|
const ClutterKeyEvent *event)
|
||||||
{
|
{
|
||||||
|
#ifdef WITH_VERBOSE_MODE
|
||||||
gboolean is_press = event->type == CLUTTER_KEY_PRESS;
|
gboolean is_press = event->type == CLUTTER_KEY_PRESS;
|
||||||
|
#endif
|
||||||
gboolean handled;
|
gboolean handled;
|
||||||
|
|
||||||
/* Synthetic key events are for autorepeat. Ignore those, as
|
/* Synthetic key events are for autorepeat. Ignore those, as
|
||||||
|
@ -254,7 +254,9 @@ bind_output (struct wl_client *client,
|
|||||||
MetaWaylandOutput *wayland_output = data;
|
MetaWaylandOutput *wayland_output = data;
|
||||||
MetaLogicalMonitor *logical_monitor = wayland_output->logical_monitor;
|
MetaLogicalMonitor *logical_monitor = wayland_output->logical_monitor;
|
||||||
struct wl_resource *resource;
|
struct wl_resource *resource;
|
||||||
|
#ifdef WITH_VERBOSE_MODE
|
||||||
MetaMonitor *monitor;
|
MetaMonitor *monitor;
|
||||||
|
#endif
|
||||||
|
|
||||||
resource = wl_resource_create (client, &wl_output_interface, version, id);
|
resource = wl_resource_create (client, &wl_output_interface, version, id);
|
||||||
wayland_output->resources = g_list_prepend (wayland_output->resources, resource);
|
wayland_output->resources = g_list_prepend (wayland_output->resources, resource);
|
||||||
@ -265,6 +267,7 @@ bind_output (struct wl_client *client,
|
|||||||
if (!logical_monitor)
|
if (!logical_monitor)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef WITH_VERBOSE_MODE
|
||||||
monitor = pick_main_monitor (logical_monitor);
|
monitor = pick_main_monitor (logical_monitor);
|
||||||
|
|
||||||
meta_verbose ("Binding monitor %p/%s (%u, %u, %u, %u) x %f\n",
|
meta_verbose ("Binding monitor %p/%s (%u, %u, %u, %u) x %f\n",
|
||||||
@ -273,6 +276,7 @@ bind_output (struct wl_client *client,
|
|||||||
logical_monitor->rect.x, logical_monitor->rect.y,
|
logical_monitor->rect.x, logical_monitor->rect.y,
|
||||||
logical_monitor->rect.width, logical_monitor->rect.height,
|
logical_monitor->rect.width, logical_monitor->rect.height,
|
||||||
wayland_output->refresh_rate);
|
wayland_output->refresh_rate);
|
||||||
|
#endif
|
||||||
|
|
||||||
send_output_events (resource, wayland_output, logical_monitor, TRUE, NULL);
|
send_output_events (resource, wayland_output, logical_monitor, TRUE, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user