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

From Andrew Dunstan
Subject Re: fix for strict-alias warnings
Date
Msg-id 3F8C0E89.2070200@dunslane.net
Whole thread Raw
In response to Re: fix for strict-alias warnings  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: fix for strict-alias warnings
List pgsql-patches
Andrew Dunstan wrote:

>
> there were 3 calls to MemSet it complained about - all in
> src/backend/storage/lmgr/proc.c, and all zeroing out the timeval
> structure. (is MemSet actually a gain in this instance?)


And looking at it even closer, 2 of the 3 cases of calling MemSet appear
to be unnecessary, as the zeroed out values are immediately overwritten.

cheers

andrew




pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: fix for strict-alias warnings
Next
From: Tom Lane
Date:
Subject: Re: [Fwd: Make psql use all pretty print options]