[dovecot-cvs] dovecot/src/lib-index mail-index-update.c,1.28,1.29

cras at procontrol.fi cras at procontrol.fi
Mon Oct 28 11:46:05 EET 2002


Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv13502/src/lib-index

Modified Files:
	mail-index-update.c 
Log Message:
Added --enable-asserts (default) and fixed some warnings when building
without. Added i_unreached() to indicate supposedly unreachable code block
and changed a existing i_assert(0) calls to it. Removed return_if_fail() and
return_val_if_fail() macros, they're not useful.



Index: mail-index-update.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-update.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- mail-index-update.c	28 Oct 2002 08:32:30 -0000	1.28
+++ mail-index-update.c	28 Oct 2002 09:46:03 -0000	1.29
@@ -256,7 +256,7 @@
 }
 
 static void update_header_field(MailIndexUpdate *update, MailDataField field,
-				const void *value, size_t size)
+				const void *value, size_t size __attr_unused__)
 {
 	switch (field) {
 	case DATA_HDR_INTERNAL_DATE:
@@ -276,7 +276,7 @@
 		update->data_hdr.body_size = *((uoff_t *) value);
 		break;
 	default:
-		i_assert(0);
+                i_unreached();
 	}
 
 	update->updated_fields |= field;




More information about the dovecot-cvs mailing list