pgsql: Remove unreachable code - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Remove unreachable code
Date
Msg-id E1SqqnD-0001Wj-1m@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Remove unreachable code

The Solaris Studio compiler warns about these instances, unlike more
mainstream compilers such as gcc.  But manual inspection showed that
the code is clearly not reachable, and we hope no worthy compiler will
complain about removing this code.

Branch
------
master

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

Modified Files
--------------
contrib/hstore/hstore_io.c              |    2 --
contrib/intarray/_int_bool.c            |    3 ---
contrib/intarray/_int_gist.c            |    2 --
contrib/ltree/ltxtquery_io.c            |    1 -
contrib/ltree/ltxtquery_op.c            |    1 -
src/backend/access/gin/ginbtree.c       |    3 ---
src/backend/access/gin/ginget.c         |    2 --
src/backend/access/gist/gistget.c       |    2 --
src/backend/executor/nodeGroup.c        |    3 ---
src/backend/libpq/be-secure.c           |    4 ++--
src/backend/storage/buffer/freelist.c   |    3 ---
src/backend/tcop/postgres.c             |    5 -----
src/backend/tsearch/dict_thesaurus.c    |    2 --
src/backend/utils/adt/formatting.c      |    1 -
src/backend/utils/adt/tsquery.c         |    1 -
src/backend/utils/adt/tsvector_parser.c |    2 --
src/bin/pg_basebackup/pg_receivexlog.c  |    3 ---
src/bin/psql/variables.c                |    2 --
src/interfaces/ecpg/ecpglib/typename.c  |    1 -
src/pl/plpgsql/src/pl_exec.c            |    2 --
20 files changed, 2 insertions(+), 43 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Add comment why seemingly dead code is necessary
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Introduce timeout handling framework