]> granicus.if.org Git - postgresql/commit
Silence compiler warnings
authorJoe Conway <mail@joeconway.com>
Mon, 2 Jan 2017 22:42:28 +0000 (14:42 -0800)
committerJoe Conway <mail@joeconway.com>
Mon, 2 Jan 2017 22:42:28 +0000 (14:42 -0800)
commit5099e8ee23641abc8437d98555b63158e75a8a55
tree0b3b7acd7f566ce4ba17e8e53cded21a5f721de1
parent7911e78f6cc5a51f4d41589542140eee00b3f10d
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