Re: pgsql: Provide overflow safe integer math inline functions. - Mailing list pgsql-committers

From Michael Paquier
Subject Re: pgsql: Provide overflow safe integer math inline functions.
Date
Msg-id CAB7nPqR_N2OpU2U4UR_Ydttqr1GxVCQGfsi_R_5eYnisay5C8w@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Provide overflow safe integer math inline functions.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
On Mon, Dec 18, 2017 at 1:03 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
>> ... Please note that if you added
>> a volatile cast to "result" as well, then compilation was able to
>> complete and regression tests passed...
>
> Yeah, that squares with my analysis: the problem with the existing test
> is that the compiler is throwing away the function call because its
> output is unused.
>
> If I haven't seen something from Andres shortly, I'll push a fix.

And the buildfarm is happy again. Thanks for the fix.
-- 
Michael


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Use new overflow aware integer operations.
Next
From: Magnus Hagander
Date:
Subject: pgsql: Fix typo on comment