summaryrefslogtreecommitdiff
path: root/contrib/intarray
diff options
context:
space:
mode:
authorPeter Eisentraut2012-07-16 19:15:03 +0000
committerPeter Eisentraut2012-07-16 19:15:03 +0000
commitdd16f9480ac67ab0c6b0102d110cd5121ed9ab46 (patch)
treef47afeb2053d2daa328047976fe9969556c40444 /contrib/intarray
parenta76c857eba977a91a07ab752d4811eb5734f0b5c (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/intarray')
-rw-r--r--contrib/intarray/_int_bool.c3
-rw-r--r--contrib/intarray/_int_gist.c2
2 files changed, 0 insertions, 5 deletions
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