[exim] Build warnings with Fedora Core 4

Pàgina inicial
Delete this message
Reply to this message
Autor: John Horne
Data:  
A: Exim users
Assumpte: [exim] Build warnings with Fedora Core 4
Hello,

Has anyone built Exim under Fedora Core 4 linux? I have downloaded the
rpm source package from the FC4 extras for exim-4.51-2. Upon rebuilding
the rpm I get a load of warnings from gcc across various source files.
E.g:

==============================================================
spool_in.c: In function 'spool_read_header':
spool_in.c:584: warning: ignoring return value of 'sscanf', declared
with attribute warn_unused_result
spool_in.c:593: warning: ignoring return value of 'sscanf', declared
with attribute warn_unused_result
spool_in.c:601: warning: ignoring return value of 'sscanf', declared
with attribute warn_unused_result
spool_in.c:607: warning: ignoring return value of 'sscanf', declared
with attribute warn_unused_result
spool_in.c:643: warning: ignoring return value of 'ungetc', declared
with attribute warn_unused_result
spool_in.c:644: warning: ignoring return value of 'fscanf', declared
with attribute warn_unused_result

exim_dbmbuild.c: In function 'main':
exim_dbmbuild.c:198: warning: passing argument 2 of 'd->set_errcall'
from incompatible pointer type

exim_dbutil.c: In function 'dbfn_open':
exim_dbutil.c:319: warning: passing argument 2 of
'dbblock->dbptr->set_errcall' from incompatible pointer type

exim_lock.c: In function 'main':
exim_lock.c:554: warning: ignoring return value of 'system', declared
with attribute warn_unused_result
exim_lock.c:559: warning: ignoring return value of 'system', declared
with attribute warn_unused_result

appendfile.c: In function 'appendfile_transport_entry':
appendfile.c:1729: warning: ignoring return value of 'chown', declared
with attribute warn_unused_result
appendfile.c:2409: warning: ignoring return value of 'chown', declared
with attribute warn_unused_result
appendfile.c:2553: warning: ignoring return value of 'chown', declared
with attribute warn_unused_result
appendfile.c:2908: warning: ignoring return value of 'ftruncate',
declared with attribute warn_unused_result
==============================================================

In total there are around 180 or so warnings. Building under FC3 may (I
can't remember for sure) have given one or two but nothing like this.

The rpm rebuild completes, and I'll test out the resulting rpm. My
concern is that despite these being 'warnings' they may actually affect
the produced executables.

The gcc rpm version is gcc-4.0.0-8.


Thanks,

John.

-- 
---------------------------------------------------------------
John Horne, University of Plymouth, UK  Tel: +44 (0)1752 233914
E-mail: John.Horne@???       Fax: +44 (0)1752 233839