aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/array_userfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
-rw-r--r--src/backend/utils/adt/array_userfuncs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/utils/adt/array_userfuncs.c b/src/backend/utils/adt/array_userfuncs.c
index 5c20d0c9d03..7f7c2569861 100644
--- a/src/backend/utils/adt/array_userfuncs.c
+++ b/src/backend/utils/adt/array_userfuncs.c
@@ -138,8 +138,7 @@ array_prepend(PG_FUNCTION_ARGS)
Datum newelem;
bool isNull;
ArrayType *result;
- int *dimv,
- *lb;
+ int *lb;
int indx;
ArrayMetaState *my_extra;
@@ -154,7 +153,6 @@ array_prepend(PG_FUNCTION_ARGS)
{
/* prepend newelem */
lb = ARR_LBOUND(v);
- dimv = ARR_DIMS(v);
indx = lb[0] - 1;
/* overflow? */