aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2016-12-06 23:02:38 -0500
committerStephen Frost <sfrost@snowman.net>2016-12-06 23:02:38 -0500
commitd97b14ddab2059e1d73c0cd17f26bac4ef13e682 (patch)
treec7ac9b0c1a5e6e0183668f18d2718a2cc2ce66a4 /src/backend/parser/parse_utilcmd.c
parent0645dacc371da6169b06934e3bd238c5f770fe25 (diff)
downloadpostgresql-d97b14ddab2059e1d73c0cd17f26bac4ef13e682.tar.gz
postgresql-d97b14ddab2059e1d73c0cd17f26bac4ef13e682.zip
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!). In GetCachedPlan(), initialize 'plan' to silence a compiler warning, but also add an Assert() to make sure we don't ever actually fall through with 'plan' still being set to NULL, since we are about to dereference it. Neither of these appear to be live bugs but at least gcc 5.4.0-6ubuntu1~16.04.4 doesn't quite have the smarts to realize that. Discussion: https://www.postgresql.org/message-id/20161129152102.GR13284%40tamriel.snowman.net
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions