pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Suppress possibly-uninitialized-variable warnings from gcc 4.5.
4+ messages / 1 participants
[nested] [flat]

* pgsql: Suppress possibly-uninitialized-variable warnings from gcc 4.5.
@ 2011-01-22 22:57  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2011-01-22 22:57 UTC (permalink / raw)
  To: pgsql-committers

Suppress possibly-uninitialized-variable warnings from gcc 4.5.

It appears that gcc 4.5 can issue such warnings for whole structs, not
just scalar variables as in the past.  Refactor some pg_dump code slightly
so that the OutputContext local variables are always initialized, even
if they won't be used.  It's cheap enough to not be worth worrying about.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=e2627258c3cc43b8b00c5c29c35933a3325...

Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c |   44 ++++++++++++++++++++++-----------
src/bin/pg_dump/pg_backup_archiver.h |    6 ----
2 files changed, 29 insertions(+), 21 deletions(-)



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

* pgsql: Suppress possibly-uninitialized-variable warning seen with older
@ 2012-01-24 18:44  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2012-01-24 18:44 UTC (permalink / raw)
  To: pgsql-committers

Suppress possibly-uninitialized-variable warning seen with older gcc versions.

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/pgstat.c |    6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)



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

* pgsql: Suppress possibly-uninitialized-variable warning.
@ 2012-08-16 16:04  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2012-08-16 16:04 UTC (permalink / raw)
  To: pgsql-committers

Suppress possibly-uninitialized-variable warning.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/56ba337e6fdff1e7ecb916f3037c666a30a98af0

Modified Files
--------------
src/backend/utils/adt/rangetypes_spgist.c |    3 +--
1 files changed, 1 insertions(+), 2 deletions(-)



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

* pgsql: Suppress possibly-uninitialized-variable warnings.
@ 2018-01-20 03:16  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2018-01-20 03:16 UTC (permalink / raw)
  To: pgsql-committers

Suppress possibly-uninitialized-variable warnings.

Apparently, Peter's compiler has faith that the switch test values here
could never not be valid values of their enums.  Mine does not, and
I tend to agree with it.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/96102a32a374c3b81ba9c2b24bcf1943a87a9ef6

Modified Files
--------------
src/backend/catalog/aclchk.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)



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


end of thread, other threads:[~2018-01-20 03:16 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-01-22 22:57 pgsql: Suppress possibly-uninitialized-variable warnings from gcc 4.5. Tom Lane <tgl@sss.pgh.pa.us>
2012-01-24 18:44 pgsql: Suppress possibly-uninitialized-variable warning seen with older Tom Lane <tgl@sss.pgh.pa.us>
2012-08-16 16:04 pgsql: Suppress possibly-uninitialized-variable warning. Tom Lane <tgl@sss.pgh.pa.us>
2018-01-20 03:16 pgsql: Suppress possibly-uninitialized-variable warnings. Tom Lane <tgl@sss.pgh.pa.us>

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