Re: fix for strict-alias warnings

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: fix for strict-alias warnings
Date: 2003-10-14 14:56:09
Message-ID: 3F8C0E89.2070200@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-10-14 15:00:51 Re: CREATE USER bug
Previous Message Andrew Dunstan 2003-10-14 14:31:02 Re: fix for strict-alias warnings

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-10-14 15:17:44 Re: [Fwd: Make psql use all pretty print options]
Previous Message Andrew Dunstan 2003-10-14 14:31:02 Re: fix for strict-alias warnings