PATCH: filters cvs borkage



hello,

here is a little patch that you seriously need to get things
compiled correctly with gcc 3.0.3 dunno if lower versions are
affected with this too.

reason:

libbalsa/filter*

some of these files do a case switch instruction and doesn't
have a break at the most bottom switch, this causes the compiler
to spit out an error if compiled with -Werror. since this shouldn't
happen i made this patch. please hold on there are some more fixes
needed for current cvs and most recent tools and gnome packages.

-- 
Name....: Ali Akcaagac
Status..: Student Of Computer & Economic Science
E-Mail..: mailto:ali.akcaagac@stud.fh-wilhelmshaven.de
WWW.....: http://www.fh-wilhelmshaven.de/~akcaagaa
diff -ruN balsa-cvs/libbalsa/filter-file.c balsa/libbalsa/filter-file.c
--- balsa-cvs/libbalsa/filter-file.c	Sun Dec 23 21:11:25 2001
+++ balsa/libbalsa/filter-file.c	Sun Dec 23 21:13:44 2001
@@ -303,6 +303,7 @@
 	gnome_config_set_int("Flags", cond->match.flags);
     case CONDITION_NONE:
 	/* Hmm this should not happen */
+	break;
     }
 }
 
diff -ruN balsa-cvs/libbalsa/filter-funcs.c balsa/libbalsa/filter-funcs.c
--- balsa-cvs/libbalsa/filter-funcs.c	Sun Dec 23 21:11:25 2001
+++ balsa/libbalsa/filter-funcs.c	Sun Dec 23 21:13:45 2001
@@ -73,6 +73,7 @@
 	/* nothing to do */
     case CONDITION_NONE:
 	/* to avoid warnings */
+	break;
     }
     g_free(cond);
 }	                       /* end libbalsa_condition_free() */
@@ -242,6 +243,7 @@
 	break;
     case CONDITION_FLAG:
     case CONDITION_NONE:
+	break;
     }
 }
 
diff -ruN balsa-cvs/libbalsa/filter.c balsa/libbalsa/filter.c
--- balsa-cvs/libbalsa/filter.c	Sun Dec 23 21:11:25 2001
+++ balsa/libbalsa/filter.c	Sun Dec 23 21:13:45 2001
@@ -308,6 +308,7 @@
 		break;
 	    case FILTER_NOTHING:
 		/* Nothing to do */
+		break;
 	    }
 	    /* We unref all messages */
 	    for (lst_messages=filt->matching_messages;lst_messages;lst_messages=g_list_next(lst_messages))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]