lib: fix messages.c build warn
authorJani Nikula <jani@nikula.org>
Sat, 7 Jan 2012 23:26:17 +0000 (01:26 +0200)
committerDavid Bremner <bremner@debian.org>
Tue, 10 Jan 2012 10:33:23 +0000 (06:33 -0400)
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>
lib/messages.c

index 7bcd1abfb4ce16791c6306c444215e1ae25418be..11218648f8c15f86f5a5dd6c5c0ece696577e46a 100644 (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;