From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Cast to void in StaticAssertExpr, not its callers. |
Date: | 2018-02-15 18:41:37 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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/[email protected]
Branch
------
master
Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 4 ++--
src/include/c.h | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2018-02-15 18:57:39 | pgsql: Doc: fix minor bug in CREATE TABLE example. |
Previous Message | Tom Lane | 2018-02-15 00:43:54 | pgsql: Move the extern declaration for ExceptionalCondition into c.h. |