git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 03c5a00) | patch
Cast to void in StaticAssertExpr, not its callers.
2018年2月15日 18:41:30 +0000 (13:41 -0500)
2018年2月15日 18:41:30 +0000 (13:41 -0500)
commit 51940f97607b7cb4d03bdd99e43abb1a1c6a0c47
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
src/backend/storage/lmgr/lwlock.c diff | blob | blame | history
src/include/c.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /