Re: Compiler warnings
Joe Conway <mail@joeconway.com>
From: Joe Conway <mail@joeconway.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Stephen Frost <sfrost@snowman.net>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2017-01-02T22:53:31Z
Lists: pgsql-hackers
On 01/02/2017 10:55 AM, Joe Conway wrote: > On the 9.2 and 9.3 branches I see two warnings: > This one once: > --------------- > plancache.c:1197:9: warning: ‘plan’ may be used uninitialized in this > function [-Wmaybe-uninitialized] > > And this one once per bison file: > --------------- > gram.y:169.1-13: warning: deprecated directive, use ‘%name-prefix’ > [-Wdeprecated] > %name-prefix="base_yy" > ^^^^^^^^^^^^^ > Starting in 9.5 I only get the plancache.c warning and this one: > --------------- > lwlock.c:1555:5: warning: ‘mode’ may be used uninitialized in this > function [-Wmaybe-uninitialized] > if (mode == LW_EXCLUSIVE) Peter Eisentraut's Bison deprecation warnings patch (per Tom's reply nearby in this thread) back-patched to 9.2 and 9.3 branches. https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=55fb759ab3e7543a6be72a35e6b6961455c5b393 Stephen Frosts's plancache.c back-patched to 9.6 through 9.2 and lwlock.c back-patched 9.6 through 9.5: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=d97b14ddab2059e1d73c0cd17f26bac4ef13e682 > For the sake of completeness, in 9.4. I get the plancache.c warning and > this one: > --------------- > basebackup.c:1284:6: warning: variable ‘wait_result’ set but not used > [-Wunused-but-set-variable] > int wait_result; This one is no longer seen -- I must have neglected to pull before making that comment. Joe -- Crunchy Data - http://crunchydata.com PostgreSQL Support for Secure Enterprises Consulting, Training, & Open Source Development
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