Silence compiler warnings
authorJoe Conway <mail@joeconway.com>
Mon, 2 Jan 2017 22:42:44 +0000 (14:42 -0800)
committerJoe Conway <mail@joeconway.com>
Mon, 2 Jan 2017 22:42:44 +0000 (14:42 -0800)
commitcbc62b22952006324199979396d229ce82f6a0d7
tree088beaa36e97ee9c2f2630208ef362abea1aaf9f
parent35d4dd82c2e82d2bc0e51174b5cfb5ac30061a81
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
src/backend/storage/lmgr/lwlock.c