Unused variable but no warning

Julien ÉLIE julien at trigofacile.com
Sun Aug 3 08:06:24 UTC 2008


Hi,

It is strange that gcc does not complain about an unused variable in innd/perl.c:

/* From art.c.  Ew.  Need header parsing that doesn't use globals. */
extern char             *filterPath;

at the beginning of this file.
filterPath was previously used when the Path: header was parsed in this file
but it is no longer the case.

If I remove that extern declaration, gcc does not complain either.  Therefore,
I think it can be removed.
But it is strange that gcc does not see that during "make warnings".

-- 
Julien ÉLIE

« Aequum est ut cuius participauit lucrum, participet et damnun. » 



More information about the inn-workers mailing list