After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 405916 - Fix all compiler warnings in evolution-exchange
Fix all compiler warnings in evolution-exchange
Status: RESOLVED FIXED
Product: Evolution Exchange
Classification: Deprecated
Component: Connector
2.8.x
Other Linux
: Normal minor
: ---
Assigned To: Connector Maintainer
Ximian Connector QA
Depends on:
Blocks:
 
 
Reported: 2007-02-08 22:21 UTC by Matthew Barnes
Modified: 2007-03-29 17:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (16.22 KB, patch)
2007-02-08 22:22 UTC, Matthew Barnes
none Details | Review
Revised patch (18.01 KB, patch)
2007-02-09 02:08 UTC, Matthew Barnes
none Details | Review
Revised patch (16.90 KB, patch)
2007-02-14 23:22 UTC, Matthew Barnes
committed Details | Review

Description Matthew Barnes 2007-02-08 22:21:42 UTC
The summary pretty much says it all.

I tried to put a little more effort into it than the usual cast-a-thon for patches like this.  I'm not sure I understand Evolution's (especially Camel's) preference for GByteArray over GString for character data.  Coupled with sloppy handling of pointer signedness, this seems to account for a large percentage of warnings in Evolution and co.

Anyway, I'll be compiling future Fedora releases of this package with -Werror.
Comment 1 Matthew Barnes 2007-02-08 22:22:32 UTC
Created attachment 82187 [details] [review]
Proposed patch
Comment 2 Matthew Barnes 2007-02-09 02:08:53 UTC
Created attachment 82202 [details] [review]
Revised patch

I missed a few warnings due to the configure options I was using the first time.  Here's a revised patch that fixes a few more.  With this patch I was able to build a Fedora Core package with the -Werror compiler option.
Comment 3 Matthew Barnes 2007-02-12 19:20:53 UTC
FYI, no new compiler warnings in Evolution-Exchange-2.9.91.
Attachment #82202 [details] is still up-to-date.
Comment 4 Matthew Barnes 2007-02-14 23:22:36 UTC
Created attachment 82576 [details] [review]
Revised patch

Spoke too soon.  Building on a 64-bit arch revealed a couple more:

cc1: warnings being treated as errors
mail-utils.c: In function 'mail_util_extract_transport_headers':
mail-utils.c:211: warning: field precision should have type 'int', but argument 2 has type 'long int'
mail-utils.c:211: warning: field precision should have type 'int', but argument 4 has type 'long int'
mail-utils.c:214: warning: field precision should have type 'int', but argument 2 has type 'long int'

This revision, finally, fixes all warnings on all arches supported by Fedora.
Comment 5 Matthew Barnes 2007-03-29 17:55:06 UTC
Committed to Subversion trunk, revision 1332.