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 <jani@nikula.org>
This commit is contained in:
Jani Nikula 2012-01-08 01:26:17 +02:00 committed by David Bremner
parent 949fd801f8
commit 3f9d73884e

View file

@ -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;