[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
    
        - Previous message: [dovecot-cvs] dovecot/src/lib macros.h,1.6,1.7 temp-string.c,1.5,1.6
 
        - Next message: [dovecot-cvs] dovecot/src/lib-storage/index index-search.c,1.36,1.37 index-storage.c,1.17,1.18 index-update-flags.c,1.11,1.12
 
         -  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
 
       
    
  
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;
    
    
        
	- Previous message: [dovecot-cvs] dovecot/src/lib macros.h,1.6,1.7 temp-string.c,1.5,1.6
 
	- Next message: [dovecot-cvs] dovecot/src/lib-storage/index index-search.c,1.36,1.37 index-storage.c,1.17,1.18 index-update-flags.c,1.11,1.12
 
         -  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
 
       
More information about the dovecot-cvs
mailing list