Re: Compiler warnings
Stephen Frost <sfrost@snowman.net>
From: Stephen Frost <sfrost@snowman.net>
To: Robert Haas <robertmhaas@gmail.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2016-12-06T20:46:44Z
Lists: pgsql-hackers
Attachments
- silence-warnings_v3.patch (text/x-diff) patch v3
Robert, * Robert Haas (robertmhaas@gmail.com) wrote: > On Tue, Dec 6, 2016 at 3:23 PM, Stephen Frost <sfrost@snowman.net> wrote: > > Given the lack of screaming, I'll push the attached in a bit, which just > > initializes the two variables being complained about. As mentioned, > > there doesn't appear to be any live bugs here, this is just to silence > > the compiler warnings. > > In LWLockRelease, why not just move mode = held_lwlocks[i].mode; after > the if (i < 0) elog(...), instead of initializing with a bogus value? Good thought, thanks! Updated patch attached with that change and I also added an Assert() to GetCachedPlan(), in case that code gets whacked around later and somehow we end up falling through without actually setting *plan. Thoughts? Thanks! Stephen
Commits
-
Silence compiler warnings
- cbc62b229520 9.5.6 landed
- 5099e8ee2364 9.6.2 landed
- 6b4a1764aa5d 9.3.16 landed
- 8cb9d0182982 9.4.11 landed
- 35d4dd82c2e8 9.5.6 landed
- 7911e78f6cc5 9.6.2 landed
- d97b14ddab20 10.0 landed
-
ilence compiler warnings
- fce04516ec5e 9.2.20 landed
-
Silence Bison deprecation warnings
- 3f9479603cac 9.3.16 landed
- b12b1743b48a 9.2.20 landed
- 55fb759ab3e7 9.4.0 cited
-
Suppress clang's unhelpful gripes about -pthread switch being unused.
- 73b416b2e412 9.5.0 cited