diff options
author | Peter Eisentraut | 2012-07-16 19:15:03 +0000 |
---|---|---|
committer | Peter Eisentraut | 2012-07-16 19:15:03 +0000 |
commit | dd16f9480ac67ab0c6b0102d110cd5121ed9ab46 (patch) | |
tree | f47afeb2053d2daa328047976fe9969556c40444 /contrib | |
parent | a76c857eba977a91a07ab752d4811eb5734f0b5c (diff) |
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.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/hstore/hstore_io.c | 2 | ||||
-rw-r--r-- | contrib/intarray/_int_bool.c | 3 | ||||
-rw-r--r-- | contrib/intarray/_int_gist.c | 2 | ||||
-rw-r--r-- | contrib/ltree/ltxtquery_io.c | 1 | ||||
-rw-r--r-- | contrib/ltree/ltxtquery_op.c | 1 |
5 files changed, 0 insertions, 9 deletions
diff --git a/contrib/hstore/hstore_io.c b/contrib/hstore/hstore_io.c index aadf050410e..7bdac3d94cb 100644 --- a/contrib/hstore/hstore_io.c +++ b/contrib/hstore/hstore_io.c @@ -163,8 +163,6 @@ get_val(HSParser *state, bool ignoreeq, bool *escaped) state->ptr++; } - - return false; } #define WKEY 0 diff --git a/contrib/intarray/_int_bool.c b/contrib/intarray/_int_bool.c index dfb113a8ea5..d0572afc1e3 100644 --- a/contrib/intarray/_int_bool.c +++ b/contrib/intarray/_int_bool.c @@ -136,7 +136,6 @@ gettoken(WORKSTATE *state, int32 *val) } (state->buf)++; } - return END; } /* @@ -301,7 +300,6 @@ execute(ITEM *curitem, void *checkval, bool calcnot, else return execute(curitem - 1, checkval, calcnot, chkcond); } - return false; } /* @@ -404,7 +402,6 @@ contains_required_value(ITEM *curitem) else return false; } - return false; } bool diff --git a/contrib/intarray/_int_gist.c b/contrib/intarray/_int_gist.c index e429c8b58c9..60de393bdf1 100644 --- a/contrib/intarray/_int_gist.c +++ b/contrib/intarray/_int_gist.c @@ -217,8 +217,6 @@ g_int_compress(PG_FUNCTION_ARGS) } else PG_RETURN_POINTER(entry); - - PG_RETURN_POINTER(entry); } Datum diff --git a/contrib/ltree/ltxtquery_io.c b/contrib/ltree/ltxtquery_io.c index c2e532c3b81..583ff2aaebb 100644 --- a/contrib/ltree/ltxtquery_io.c +++ b/contrib/ltree/ltxtquery_io.c @@ -139,7 +139,6 @@ gettoken_query(QPRS_STATE *state, int32 *val, int32 *lenval, char **strval, uint state->buf += charlen; } - return END; } /* diff --git a/contrib/ltree/ltxtquery_op.c b/contrib/ltree/ltxtquery_op.c index bedbe247eb8..64f9d219f76 100644 --- a/contrib/ltree/ltxtquery_op.c +++ b/contrib/ltree/ltxtquery_op.c @@ -40,7 +40,6 @@ ltree_execute(ITEM *curitem, void *checkval, bool calcnot, bool (*chkcond) (void else return ltree_execute(curitem + 1, checkval, calcnot, chkcond); } - return false; } typedef struct |