pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Silence compiler warnings
12+ messages / 4 participants
[nested] [flat]

* pgsql: Silence compiler warnings
@ 2013-01-17 15:10 Magnus Hagander <magnus@hagander.net>
  0 siblings, 0 replies; 12+ messages in thread

From: Magnus Hagander @ 2013-01-17 15:10 UTC (permalink / raw)
  To: pgsql-committers

Silence compiler warnings

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8ef6961685b380b493a6e4b4e2e833de239c120e

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c |    6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2016-09-28 22:39 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 12+ messages in thread

From: Alvaro Herrera @ 2016-09-28 22:39 UTC (permalink / raw)
  To: pgsql-committers

Silence compiler warnings

Reported by Peter Eisentraut.  Coding suggested by Tom Lane.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b82d5a2c7c9dd1a01041feef2834db27a46fb2d3

Modified Files
--------------
src/backend/catalog/objectaddress.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2016-09-28 22:39 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 12+ messages in thread

From: Alvaro Herrera @ 2016-09-28 22:39 UTC (permalink / raw)
  To: pgsql-committers

Silence compiler warnings

Reported by Peter Eisentraut.  Coding suggested by Tom Lane.

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7341c2830cf3d06a96d97f0e6a2e85bf808faae4

Modified Files
--------------
src/backend/catalog/objectaddress.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2016-09-28 22:39 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 12+ messages in thread

From: Alvaro Herrera @ 2016-09-28 22:39 UTC (permalink / raw)
  To: pgsql-committers

Silence compiler warnings

Reported by Peter Eisentraut.  Coding suggested by Tom Lane.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2937ffa5d5790e6bcefae0492388adb192db936b

Modified Files
--------------
src/backend/catalog/objectaddress.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2016-12-07 04:02 Stephen Frost <sfrost@snowman.net>
  0 siblings, 0 replies; 12+ messages in thread

From: Stephen Frost @ 2016-12-07 04:02 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d97b14ddab2059e1d73c0cd17f26bac4ef13e682

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c   | 9 ++++-----
src/backend/utils/cache/plancache.c | 4 +++-
2 files changed, 7 insertions(+), 6 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2017-01-02 22:14 Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Joe Conway @ 2017-01-02 22:14 UTC (permalink / raw)
  To: pgsql-committers

Silence compiler warnings

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.

Back-patch back to 9.2.

Author: Stephen Frost
Discussion: https://postgr.es/m/20161129152102.GR13284%40tamriel.snowman.net

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7911e78f6cc5a51f4d41589542140eee00b3f10d

Modified Files
--------------
src/backend/utils/cache/plancache.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2017-01-02 22:14 Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Joe Conway @ 2017-01-02 22:14 UTC (permalink / raw)
  To: pgsql-committers

Silence compiler warnings

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.

Back-patch back to 9.2.

Author: Stephen Frost
Discussion: https://postgr.es/m/20161129152102.GR13284%40tamriel.snowman.net

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/35d4dd82c2e82d2bc0e51174b5cfb5ac30061a81

Modified Files
--------------
src/backend/utils/cache/plancache.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2017-01-02 22:14 Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Joe Conway @ 2017-01-02 22:14 UTC (permalink / raw)
  To: pgsql-committers

Silence compiler warnings

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.

Back-patch back to 9.2.

Author: Stephen Frost
Discussion: https://postgr.es/m/20161129152102.GR13284%40tamriel.snowman.net

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8cb9d01829825e55c5637db40f5cd0690111cf09

Modified Files
--------------
src/backend/utils/cache/plancache.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2017-01-02 22:14 Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Joe Conway @ 2017-01-02 22:14 UTC (permalink / raw)
  To: pgsql-committers

Silence compiler warnings

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.

Back-patch back to 9.2.

Author: Stephen Frost
Discussion: https://postgr.es/m/20161129152102.GR13284%40tamriel.snowman.net

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6b4a1764aa5dfece5020b78beb56ffde66bd1b21

Modified Files
--------------
src/backend/utils/cache/plancache.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2017-01-02 22:43 Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Joe Conway @ 2017-01-02 22:43 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/5099e8ee23641abc8437d98555b63158e75a8a55

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2017-01-02 22:43 Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Joe Conway @ 2017-01-02 22:43 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/cbc62b22952006324199979396d229ce82f6a0d7

Modified Files
--------------
src/backend/storage/lmgr/lwlock.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* pgsql: Silence compiler warnings
@ 2018-11-23 16:06 Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 12+ messages in thread

From: Alvaro Herrera @ 2018-11-23 16:06 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Silence compiler warnings

Commit cfdf4dc4fc96 left a few unnecessary assignments, one of which
caused compiler warnings, as reported by Erik Rijkers.  Remove them all.

Discussion: https://postgr.es/m/df0dcca2025b3d90d946ecc508ca9678@xs4all.nl

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3be5fe2b107fae24e03c9d29d7bd7c7ad5345787

Modified Files
--------------
contrib/pg_prewarm/autoprewarm.c         | 18 ++++++++----------
src/backend/postmaster/bgwriter.c        |  8 ++++----
src/test/modules/worker_spi/worker_spi.c |  9 ++++-----
3 files changed, 16 insertions(+), 19 deletions(-)



^ permalink  raw  reply  [nested|flat] 12+ messages in thread


end of thread, other threads:[~2018-11-23 16:06 UTC | newest]

Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-01-17 15:10 pgsql: Silence compiler warnings Magnus Hagander <magnus@hagander.net>
2016-09-28 22:39 pgsql: Silence compiler warnings Alvaro Herrera <alvherre@alvh.no-ip.org>
2016-09-28 22:39 pgsql: Silence compiler warnings Alvaro Herrera <alvherre@alvh.no-ip.org>
2016-09-28 22:39 pgsql: Silence compiler warnings Alvaro Herrera <alvherre@alvh.no-ip.org>
2016-12-07 04:02 pgsql: Silence compiler warnings Stephen Frost <sfrost@snowman.net>
2017-01-02 22:14 pgsql: Silence compiler warnings Joe Conway <mail@joeconway.com>
2017-01-02 22:14 pgsql: Silence compiler warnings Joe Conway <mail@joeconway.com>
2017-01-02 22:14 pgsql: Silence compiler warnings Joe Conway <mail@joeconway.com>
2017-01-02 22:14 pgsql: Silence compiler warnings Joe Conway <mail@joeconway.com>
2017-01-02 22:43 pgsql: Silence compiler warnings Joe Conway <mail@joeconway.com>
2017-01-02 22:43 pgsql: Silence compiler warnings Joe Conway <mail@joeconway.com>
2018-11-23 16:06 pgsql: Silence compiler warnings Alvaro Herrera <alvherre@alvh.no-ip.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox