Re: [releng_6 tinderbox] failure on sparc64/sparc64
- From: des@xxxxxx (Dag-Erling Smørgrav)
- Date: Sun, 05 Feb 2006 16:45:34 +0100
Stefan Farfeleder <stefanf@xxxxxxxxxxx> writes:
On Sat, Feb 04, 2006 at 03:58:56PM -0700, M. Warner Losh wrote:
This driver wants to access these structures as arrays of uint32_t.I'm afraid that only silences the warning without solving the underlying
It used to cast directly, but that isn't allowed. So, I've passed
the cast through a (void *). Is that allowed? Eg:
struct foo foo;
((uint32_t *)(void *)&foo)[3] = 12;
is that OK?
problem. I don't think there's a Standard conforming way to treat a
struct foo as an uint32_t array.
A union should do the trick.
DES
--
Dag-Erling Smørgrav - des@xxxxxx
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: [releng_6 tinderbox] failure on sparc64/sparc64
- From: Erik Trulsson
- Re: [releng_6 tinderbox] failure on sparc64/sparc64
- From: M. Warner Losh
- Re: [releng_6 tinderbox] failure on sparc64/sparc64
- References:
- Re: [releng_6 tinderbox] failure on sparc64/sparc64
- From: M. Warner Losh
- Re: [releng_6 tinderbox] failure on sparc64/sparc64
- From: Stefan Farfeleder
- Re: [releng_6 tinderbox] failure on sparc64/sparc64
- Prev by Date: Re: [releng_6 tinderbox] failure on sparc64/sparc64
- Next by Date: Re: [releng_6 tinderbox] failure on sparc64/sparc64
- Previous by thread: Re: [releng_6 tinderbox] failure on sparc64/sparc64
- Next by thread: Re: [releng_6 tinderbox] failure on sparc64/sparc64
- Index(es):
Relevant Pages
|
|