mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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:
parent
949fd801f8
commit
3f9d73884e
1 changed files with 4 additions and 2 deletions
|
@ -127,8 +127,10 @@ notmuch_messages_get (notmuch_messages_t *messages)
|
||||||
void
|
void
|
||||||
notmuch_messages_move_to_next (notmuch_messages_t *messages)
|
notmuch_messages_move_to_next (notmuch_messages_t *messages)
|
||||||
{
|
{
|
||||||
if (! messages->is_of_list_type)
|
if (! messages->is_of_list_type) {
|
||||||
return _notmuch_mset_messages_move_to_next (messages);
|
_notmuch_mset_messages_move_to_next (messages);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (messages->iterator == NULL)
|
if (messages->iterator == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue