From 2c31a5bc23cf5a092c0621bf34554ffb2b6ae2ec Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Tue, 8 Feb 2011 11:57:50 -0500 Subject: Bug 641756 - Fix warnings from GCC 4.6 GCC learned how to find dead assignments. --- em-format/em-format.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'em-format') diff --git a/em-format/em-format.c b/em-format/em-format.c index cba7c765bc..27f3d1bfb6 100644 --- a/em-format/em-format.c +++ b/em-format/em-format.c @@ -1868,15 +1868,12 @@ emf_multipart_related (EMFormat *emf, for (i = 0; i < nparts; i++) { body_part = camel_multipart_get_part (mp, i); if (body_part != display_part) { - EMFormatPURI *puri; - /* set the partid since add_puri uses it */ g_string_append_printf(emf->part_id, ".related.%d", i); - puri = em_format_add_puri ( + em_format_add_puri ( emf, sizeof (EMFormatPURI), NULL, body_part, emf_write_related); g_string_truncate (emf->part_id, partidlen); - d(printf(" part '%s' '%s' added\n", puri->uri?puri->uri:"", puri->cid)); } } -- cgit