[dovecot-cvs] dovecot/src/lib-storage/list mailbox-list-maildir.c, 1.1, 1.2

tss at dovecot.org tss at dovecot.org
Sat Nov 18 14:06:36 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/list
In directory talvi:/tmp/cvs-serv25815/lib-storage/list

Modified Files:
	mailbox-list-maildir.c 
Log Message:
Added some noreturn attributes and fixed warnings caused by them.



Index: mailbox-list-maildir.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/list/mailbox-list-maildir.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- mailbox-list-maildir.c	16 Nov 2006 00:16:39 -0000	1.1
+++ mailbox-list-maildir.c	18 Nov 2006 14:06:34 -0000	1.2
@@ -85,12 +85,14 @@
 	return TRUE;
 }
 
-static bool
+static bool __attr_noreturn__
 maildir_is_valid_mask(struct mailbox_list *list __attr_unused__,
 		      const char *mask __attr_unused__)
 {
 	i_unreached();
+#ifndef __attrs_used__
 	return FALSE;
+#endif
 }
 
 static bool



More information about the dovecot-cvs mailing list