Re: Proposal: Add more compile-time asserts to expose inconsistencies.

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: peters(at)fast(dot)au(dot)fujitsu(dot)com
Cc: andres(at)anarazel(dot)de, pgsql-hackers(at)lists(dot)postgresql(dot)org, peter(dot)eisentraut(at)2ndquadrant(dot)com, tgl(at)sss(dot)pgh(dot)pa(dot)us, michael(at)paquier(dot)xyz, ilmari(at)ilmari(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Proposal: Add more compile-time asserts to expose inconsistencies.
Date: 2019-10-28 02:26:06
Message-ID: 20191028.112606.178811315126144266.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello.

At Mon, 28 Oct 2019 00:30:11 +0000, "Smith, Peter" <peters(at)fast(dot)au(dot)fujitsu(dot)com> wrote in
> From: Andres Freund <andres(at)anarazel(dot)de> Sent: Sunday, 27 October 2019 12:03 PM
> > My proposal for this really was just to use this as a fallback for when static assert isn't available. Which in turn I was just suggesting because Tom wanted a fallback.
>
> The patch is updated to use "extern" technique only when "_Static_assert" is unavailable.
>
> PSA.

It is missing the __cplusplus case?

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Arthur Zakirov 2019-10-28 02:59:01 Re: CREATE TEXT SEARCH DICTIONARY segfaulting on 9.6+
Previous Message Benjamin Scherrey 2019-10-28 01:33:52 Re: PL/Python fails on new NetBSD/PPC 8.0 install