Re: fix for strict-alias warnings - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: fix for strict-alias warnings
Date
Msg-id 200310111713.h9BHDkY20385@candle.pha.pa.us
Whole thread Raw
In response to Re: fix for strict-alias warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: fix for strict-alias warnings
List pgsql-patches
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Patch applied.  Thanks.
>
> I hope you applied it with the additional changes you asked for ---
> at the very least, cast to (void*) and then to the destination type.
> As-is, the patch simply suppresses all error detection for these
> conversions, which seems a bad move.

I don't have a version that does the double-cast, but I still have the
patch to back out and put in a new one.  Andrew's point was that we cast
to void * in many places, so this case is not unique.  Is that wrong?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: fix for strict-alias warnings
Next
From: Tom Lane
Date:
Subject: Re: fix for strict-alias warnings