cvs commit: src/lib/libarchive Makefile

Tim Kientzle kientzle at acm.org
Thu Feb 12 08:37:12 PST 2004


* Dag-Erling Smørgrav <des at des.no> [ Date: 2004-02-12 ]
  	[ w.r.t. Re: cvs commit: src/lib/libarchive Makefile ]
>Tim Kientzle <kientzle at FreeBSD.org> writes:
>
>>  Log:
>>  libarchive itself is now completely clean at WARNS=10 on all architectures.
>>  
>>  Unfortunately, the stock zlib.h is not:
>>    line 885: 'err' parameter shadows global 'err' definition from <err.h>
>
>This is trivial to fix, if we're willing to take zlib.h off the vendor
>branch or manage to convince Gailly to take our patch.

Taking zlib.h off the vendor branch is a decision
I'll leave to Peter, who has been maintaining our
zlib import and will probably suffer the consequences
at the next import.

Convincing Gailly to take our patch is a good idea, but
one that will take a while to implement.  (Especially
since we're several versions behind his current zlib work.)

juli mallett wrote:
> Personally, I'm against prototype declarations in headers being
> warning checked for parameter names, even moreso for headers not
> included within the headers in question.

My personal preference has always been to comment the names
in prototype declarations, e.g.:

int foo(int /* err */);

That way:
   a) The name is there to document the parameter
   b) You avoid problems with over-zealous compiler
      warnings, macro expansions, etc.

"Fixing" the compiler is certainly an approach, but there
are a lot of compilers out there and we can't fix them all.  ;-)

Tim



More information about the cvs-src mailing list