From 56c11abbf5a5a6e7b53905f91fda1ba75b02b296 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 19:19:48 +0200 Subject: playlist: return -1 after assert(0) print_playlist_result() had an assert(0) at the end, in case there was an invalid result value. With NDEBUG, this resulted in a function not returning a value - add a dummy "return -1" at the end to keep gcc quiet. --- src/command.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/command.c b/src/command.c index 1da3736d1..ebca41bde 100644 --- a/src/command.c +++ b/src/command.c @@ -263,6 +263,7 @@ static int print_playlist_result(int fd, enum playlist_result result) } assert(0); + return -1; } static void addCommand(const char *name, -- cgit v1.2.3