pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix integer-overflow problems in interval comparison.
Date: Mon, 17 Apr 2017 13:04:31 -0400
Message-ID: <7775.1492448671@sss.pgh.pa.us> (raw)
In-Reply-To: <4a192a84-9004-2263-6447-0fef95e18fa6@2ndquadrant.com>
References: <E1cvySh-0006pk-UM@gemulon.postgresql.org>
	<4a192a84-9004-2263-6447-0fef95e18fa6@2ndquadrant.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 4/5/17 23:51, Tom Lane wrote:
>> Fix integer-overflow problems in interval comparison.

> This is failing cpluspluscheck now because C++ does not have
> _Static_assert, which is used in int128.h.

Hmm.  We could drop that assert, or move it to some .c file, or
wrap it in "#ifndef __cplusplus" ... but really it seems like a
more generic solution would be appropriate.  This won't be the
last time somebody tries to do that, what with our increasing
use of inline functions.

Maybe the definition of StaticAssertStmt should be tweaked based on
__cplusplus?  Or maybe the problem is cpluspluscheck's test methodology,
ie you ought to run configure with CC=c++ before trying to compile the
headers?

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (7+ messages)  latest in thread

Message-ID: <7775.1492448671@sss.pgh.pa.us>
Permalink:  ../7775.1492448671@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7775.1492448671@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
  Subject: Re: pgsql: Fix integer-overflow problems in interval comparison.
  In-Reply-To: <7775.1492448671@sss.pgh.pa.us>
  References: <E1cvySh-0006pk-UM@gemulon.postgresql.org> <4a192a84-9004-2263-6447-0fef95e18fa6@2ndquadrant.com> <7775.1492448671@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox