From: Jani Nikula Date: Sat, 7 Jan 2012 23:26:17 +0000 (+0200) Subject: lib: fix messages.c build warn X-Git-Tag: debian/0.12_rc1-1~221 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3f9d73884ee7c26797a1528b89e1fe63aadc3271;p=notmuch.git lib: fix messages.c build warn lib/messages.c: In function ‘notmuch_messages_move_to_next’: lib/messages.c:131:2: warning: ISO C forbids ‘return’ with expression, in function returning void [-pedantic] Signed-off-by: Jani Nikula --- diff --git a/lib/messages.c b/lib/messages.c index 7bcd1abf..11218648 100644 --- a/lib/messages.c +++ b/lib/messages.c @@ -127,8 +127,10 @@ notmuch_messages_get (notmuch_messages_t *messages) void notmuch_messages_move_to_next (notmuch_messages_t *messages) { - if (! messages->is_of_list_type) - return _notmuch_mset_messages_move_to_next (messages); + if (! messages->is_of_list_type) { + _notmuch_mset_messages_move_to_next (messages); + return; + } if (messages->iterator == NULL) return;