Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 2002 19:29:40 -0700
From:      "David O'Brien" <obrien@FreeBSD.ORG>
To:        Garance A Drosihn <drosih@rpi.edu>
Cc:        sparc64@FreeBSD.ORG
Subject:   Re: hosted-gcc_20020419.tar.bz2 uploaded
Message-ID:  <20020424192940.B35128@dragon.nuxi.com>
In-Reply-To: <p05111700b8ea33d21f0a@[128.113.24.47]>; from drosih@rpi.edu on Mon, Apr 22, 2002 at 05:58:56PM -0400
References:  <20020420194116.A92671@dragon.nuxi.com> <p05111703b8ea1ccbbd40@[128.113.24.47]> <20020422135153.A50570@dragon.nuxi.com> <p05111700b8ea33d21f0a@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 22, 2002 at 05:58:56PM -0400, Garance A Drosihn wrote:
> |_  ../ctlinfo.c:231: warning: void format, cjobinfo arg (arg 3)
> |_  ../ctlinfo.c:231: warning: void format, cjprivate arg (arg 4)
> 
> Apparently it wants %p to be used with (void *) or (char *), and not
> (struct blahblah *).  If I cast those parameters to (void *) then the
> warning goes away.  Is that a change I should make?  

Yes.

> Why does it care
> what it's a pointer to, as long as it's a pointer to data?

Because not all pointers are potentially the same.

> |_  ../net.c:278: warning: pointer of type `void *' used in arithmetic
> 
> Should va_arg() be changed?

You (the port) may not be using the proper va_args header.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-sparc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020424192940.B35128>