summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b686984)
raw | patch | inline | side by side (parent: b686984)
author | Thomas Jansen <mithi@mithi.net> | |
Mon, 24 Nov 2008 02:45:17 +0000 (03:45 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 24 Nov 2008 06:47:38 +0000 (07:47 +0100) |
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index 26ab45896b9f36fc408f0f8a24f44e1c52854c0d..ed76181f627a20fafb80057110782dc4d041e4d1 100644 (file)
--- a/src/main.c
+++ b/src/main.c
#include "screen_utils.h"
#include "strfsong.h"
#include "i18n.h"
-#include "gcc.h"
#ifndef NCMPC_MINI
#include "conf.h"
}
static void
-error_callback(mpd_unused mpdclient_t *c, gint error, const gchar *_msg)
+error_callback(G_GNUC_UNUSED mpdclient_t *c, gint error, const gchar *_msg)
{
char *msg = utf8_to_locale(_msg);
}
static void
-catch_sigint(mpd_unused int sig)
+catch_sigint(G_GNUC_UNUSED int sig)
{
g_main_loop_quit(main_loop);
}
static void
-catch_sigcont(mpd_unused int sig)
+catch_sigcont(G_GNUC_UNUSED int sig)
{
screen_resize(mpd);
}
static guint timer_sigwinch_id;
static gboolean
-timer_sigwinch(mpd_unused gpointer data)
+timer_sigwinch(G_GNUC_UNUSED gpointer data)
{
/* the following causes the screen to flicker. There might be
better solutions, but I believe it isn't all that
}
static void
-catch_sigwinch(mpd_unused int sig)
+catch_sigwinch(G_GNUC_UNUSED int sig)
{
if (timer_sigwinch_id != 0)
g_source_remove(timer_sigwinch_id);
* broken. It tries to recover by reconnecting periodically.
*/
static gboolean
-timer_reconnect(mpd_unused gpointer data)
+timer_reconnect(G_GNUC_UNUSED gpointer data)
{
int ret;
* 500ms. It is used for delayed seeking.
*/
static gboolean
-timer_idle(mpd_unused gpointer data)
+timer_idle(G_GNUC_UNUSED gpointer data)
{
screen_idle(mpd);
return TRUE;
}
static gboolean
-keyboard_event(mpd_unused GIOChannel *source,
- mpd_unused GIOCondition condition, mpd_unused gpointer data)
+keyboard_event(G_GNUC_UNUSED GIOChannel *source,
+ G_GNUC_UNUSED GIOCondition condition,
+ G_GNUC_UNUSED gpointer data)
{
command_t cmd;
* message every 10 seconds.
*/
static gboolean
-timer_check_key_bindings(mpd_unused gpointer data)
+timer_check_key_bindings(G_GNUC_UNUSED gpointer data)
{
char buf[256];
gboolean key_error;