pgsql: Silence compiler warnings

Lists: pgsql-committers
From: Joe Conway <mail(at)joeconway(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Silence compiler warnings
Date: 2017-01-02 22:43:19
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-committers

Silence compiler warnings

Rearrange a bit of code to ensure that 'mode' in LWLockRelease is
obviously always set, which seems a bit cleaner and avoids a compiler
warning (thanks to Robert for the suggestion!).

Back-patch back to 9.5 where the warning is first seen.

Author: Stephen Frost
Discussion: https://postgr.es/m/20161129152102.GR13284%40tamriel.snowman.net

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/5099e8ee23641abc8437d98555b63158e75a8a55

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)