From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Cast to void in StaticAssertExpr, not its callers.
Date: Thu, 15 Feb 2018 18:41:37 +0000
Message-ID: <E1emOTR-0002HE-MJ@gemulon.postgresql.org> (raw)
Cast to void in StaticAssertExpr, not its callers.
Seems a bit silly that many (in fact all, as of today) uses of
StaticAssertExpr would need to cast it to void to avoid warnings from
pickier compilers. Let's just do the cast right in the macro, instead.
In passing, change StaticAssertExpr to StaticAssertStmt in one
place where that seems more apropos.
Discussion: https://postgr.es/m/16161.1518715186@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/51940f97607b7cb4d03bdd99e43abb1a1c6a0c47
Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 4 ++--
src/include/c.h | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
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
Subject: Re: pgsql: Cast to void in StaticAssertExpr, not its callers.
In-Reply-To: <E1emOTR-0002HE-MJ@gemulon.postgresql.org>
References: <E1emOTR-0002HE-MJ@gemulon.postgresql.org>
* 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