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 351332 - fix implicit function declarations in Evolution code
fix implicit function declarations in Evolution code
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: general
2.8.x (obsolete)
Other Linux
: Normal critical
: ---
Assigned To: Harish Krishnaswamy
Evolution QA team
evolution[codecleanup]
: 352708 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-14 18:03 UTC by Matthew Barnes
Modified: 2013-09-13 00:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Proposed patch (9.50 KB, patch)
2006-08-14 18:04 UTC, Matthew Barnes
none Details | Review
List of implicit function declaration errors (3.60 KB, text/x-log)
2006-08-14 18:05 UTC, Matthew Barnes
  Details
Additional patch for 2.7.92 (424 bytes, patch)
2006-08-21 18:31 UTC, Matthew Barnes
none Details | Review
Proposed patch (7.89 KB, patch)
2006-09-06 20:05 UTC, Matthew Barnes
reviewed Details | Review

Description Matthew Barnes 2006-08-14 18:03:21 UTC
There are quite a few places in the Evolution source code that produce "implicit declaration of function" warnings during compilation.  When packaging Evolution for Fedora Core I usually build it with the -Werror-implicit-function-declaration compiler flag (to make the warnings fatal) and then patch the failures.


I am filing this bug for two reasons:

1) To get the patch merged upstream (and to get it off my hands!).

2) To encourage Evolution developers to make this compiler flag used by
   default when building Evolution.


To help with the analysis of the patch, I have assembled a list of compiler errors I encountered when building Evolution with the aforementioned flag.  The list is ordered to correspond with the ordering of hunks in the patch.
Comment 1 Matthew Barnes 2006-08-14 18:04:36 UTC
Created attachment 70877 [details] [review]
Proposed patch

Fixes all missing function declarations in Evolution 2.7.91.
Comment 2 Matthew Barnes 2006-08-14 18:05:43 UTC
Created attachment 70878 [details]
List of implicit function declaration errors
Comment 3 André Klapper 2006-08-17 17:55:16 UTC
oh my god, i always wanted a patch like that. :-)
thanks a lot!

harish: *poke* - review?
Comment 4 Matthew Barnes 2006-08-17 18:06:31 UTC
Note that some of the recently submitted patches on evolution-patches@gnome.org may overlap with this one.
Comment 5 André Klapper 2006-08-19 14:37:26 UTC
as i wrote on e-h mailing list, let's get this patch in and from that on, please always compile with -Werror-implicit-function-declaration and
G_LOG_LEVEL_CRITICAL enabled to both avoid problems on other platforms (e.g. bug 349310) and unusable 2.7.4 releases.
this refers to ALL the novell evolution folks compiling evo, not only harish and poornima, but also everybody testing his own patches.
Comment 6 Matthew Barnes 2006-08-21 18:31:43 UTC
Created attachment 71330 [details] [review]
Additional patch for 2.7.92

Found a new one in Evolution 2.7.92.  Here's a patch for it.
Comment 7 André Klapper 2006-08-25 07:22:49 UTC
*** Bug 352708 has been marked as a duplicate of this bug. ***
Comment 8 André Klapper 2006-08-25 07:24:14 UTC
bug 352708 provides another nice list of all the places where this happens.
changing severity as this can trigger crashes on other platforms (see bug 349310).
Comment 9 Matthew Barnes 2006-09-06 20:05:40 UTC
Created attachment 72335 [details] [review]
Proposed patch

Evolution 2.8.0 fixed a few of these, so here's a new patch that covers all of the remaining issues in CVS HEAD.

It would be great to see this fixed once and for all in Evolution 2.8.1 and 2.9.1.  That way I can start on my next goal: make Evolution survive -Werror (as much as possible) by 2.10.
Comment 10 Harish Krishnaswamy 2006-09-18 15:09:18 UTC
Looks good. Can you pl. attach a ChangeLog before committing it ?
Thanks for the patch.
Comment 11 Matthew Barnes 2006-09-18 17:32:58 UTC
Patch committed with ChangeLog entries.  Closing this bug.