From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Serious warnings from RH 6.1 SRPMs on alpha
Date: Tue, 2 Nov 1999 10:09:35 -0700 (MST) [thread overview]
Message-ID: <199911021709.KAA11620@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <c=US%a=_%p=delfland%l=MSMAIL-991102155943Z-1471@msmail.energie-delfland.nl> from "Wessels, Hans" at Nov 2, 99 04:59:43 pm
Wessels, Hans wrote:
>
> An other way is:
> void foo(char *p)
> {
> int alignment;
> alignment = ((int) p) &0x0F; /* Get a warning */
> ...
> }
>
> Anyone how to do this without getting a warning?
int foo(char *p)
{
int alignment;
long atmp;
atmp = ((long) p) &0x0FL;
return (alignment = atmp);
}
Actually a generated assembler will be much simpler than
you can expect. See for yourself. :-)
Michal
next prev parent reply other threads:[~1999-11-02 17:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-02 15:59 Serious warnings from RH 6.1 SRPMs on alpha Wessels, Hans
1999-11-02 17:09 ` Michal Jaegermann [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-11-02 17:18 Brad Lucier
1999-11-02 15:23 Brad Lucier
1999-11-02 15:40 ` Christian Iseli
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox