From db7c0834faae943816f41d9c8ef7260d7a7af929 Mon Sep 17 00:00:00 2001 From: waker Date: Thu, 2 Feb 2012 20:52:10 +0100 Subject: added a few missing returns --- configure.ac | 1 - junklib.c | 1 + playlist.c | 4 +++- plugins/gtkui/ddbvolumebar.c | 1 + plugins/gtkui/trkproperties.c | 1 + streamer.c | 1 + 6 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 9e2b179d..4513db87 100644 --- a/configure.ac +++ b/configure.ac @@ -58,7 +58,6 @@ AC_SUBST(YASM_FLAGS) test "x$prefix" = xNONE && prefix=$ac_default_prefix - dnl INSANE_CFLAGS="-Wformat -Wdisabled-optimization -Wcomment -Wchar-subscripts -Wunused-function -Wunused-value -Wuninitialized -Wtype-limits -Wbad-function-cast" dnl INSANE_CXXFLAGS="-Wcomment -Wchar-subscripts -Wunused-function -Wunused-value -Wuninitialized -Wtype-limits" diff --git a/junklib.c b/junklib.c index ed0c203f..fe9a6dc3 100644 --- a/junklib.c +++ b/junklib.c @@ -1130,6 +1130,7 @@ junk_apev2_add_frame (playItem_t *it, DB_apev2_tag_t *tag_store, DB_apev2_frame_ } } } + return 0; } int diff --git a/playlist.c b/playlist.c index e1ae14f4..a2a25311 100644 --- a/playlist.c +++ b/playlist.c @@ -1816,8 +1816,9 @@ plt_delete_selected (playlist_t *playlist) { int pl_delete_selected (void) { LOCK; - plt_delete_selected (playlist); + int ret = plt_delete_selected (playlist); UNLOCK; + return ret; } void @@ -2581,6 +2582,7 @@ pl_get_item_replaygain (playItem_t *it, int idx) { case DDB_REPLAYGAIN_TRACKPEAK: return pl_find_meta_float (it, rg_keys[idx], 1); } + return 0; } int diff --git a/plugins/gtkui/ddbvolumebar.c b/plugins/gtkui/ddbvolumebar.c index 732210f3..4d98cb05 100644 --- a/plugins/gtkui/ddbvolumebar.c +++ b/plugins/gtkui/ddbvolumebar.c @@ -185,6 +185,7 @@ volumebar_draw (GtkWidget *widget, cairo_t *cr) { gboolean on_volumebar_draw (GtkWidget *widget, cairo_t *cr) { volumebar_draw (widget, cr); + return FALSE; } #if !GTK_CHECK_VERSION(3,0,0) diff --git a/plugins/gtkui/trkproperties.c b/plugins/gtkui/trkproperties.c index c6c704c9..d575c759 100644 --- a/plugins/gtkui/trkproperties.c +++ b/plugins/gtkui/trkproperties.c @@ -494,6 +494,7 @@ set_progress_cb (void *ctx) { const char *fname = deadbeef->pl_find_meta_raw (track, ":URI"); gtk_entry_set_text (GTK_ENTRY (progressitem), fname); deadbeef->pl_item_unref (track); + return FALSE; } static void diff --git a/streamer.c b/streamer.c index ad5b9a04..267e5e42 100644 --- a/streamer.c +++ b/streamer.c @@ -1780,6 +1780,7 @@ streamer_set_output_format (void) { return -1; } } + return 0; } // decodes data and converts to current output format -- cgit v1.2.3