RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [PATCH] make current HEAD compile

From: Jeff Johnson <n3npq@mac.com>
Date: Sun 07 Oct 2007 - 17:41:43 CEST
Message-Id: <359DCA46-8A0C-4A63-8FBE-102F376AAB24@mac.com>

On Oct 7, 2007, at 11:28 AM, Bernhard Rosenkraenzer wrote:

> This happens when compiling today's HEAD:
>
> pkgio.c:1103: warning: passing argument 1 of 'headerLoad' discards  
> qualifiers
> from pointer target type
> pkgio.c:1105: error: 'RPMRC_BAD' undeclared (first use in this  
> function)
> pkgio.c:1105: error: (Each undeclared identifier is reported only once
> pkgio.c:1105: error: for each function it appears in.)
>
> The attached patch fixes the error (not the warning, but that one  
> is probably
> harmless).
> <rpm-20071007-compilefix.patch>

Heh, splint != gcc, each has their own special idiosyncracies.

Instead of sending patches, send along a pubkey for cvs write access.  
Likely
easier for both of us.

And watchout for my next checkin, unions of ptrs to unions of ptrs,  
oh my!

I've always been deeply conflicted about what to do with the 4th  
argument
to headergetEntry(). My next checkin is pedantically and anally  
correct, but
will likely increase the already embarassing number of programming  
errors
that *I* make just trying to scoop some goop out of a header.

We'll see ...

73 de Jeff
Received on Sun Oct 7 17:42:06 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.