Re: strict aliasing (was: const correctness) - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: strict aliasing (was: const correctness)
Date
Msg-id 1321305861-sup-541@alvh.no-ip.org
Whole thread Raw
In response to Re: strict aliasing (was: const correctness)  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: strict aliasing (was: const correctness)
Re: strict aliasing (was: const correctness)
List pgsql-hackers
Excerpts from Kevin Grittner's message of lun nov 14 17:30:50 -0300 2011:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > "Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:

> >> Also, is there something I should do to deal with the warnings
> >> before this would be considered a meaningful test?
> > 
> > Dunno ... where were the warnings exactly?
>  
> All 10 were like this:
>  
>   warning: dereferencing type-punned pointer will break
>     strict-aliasing rules

Uhm, shouldn't we expect there to be one warning for each use of a Node
using some specific node pointer type as well as something generic such
as inside a ListCell etc?

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: strict aliasing (was: const correctness)
Next
From: Greg Smith
Date:
Subject: Re: Group Commit