From 9ab1329b44901b42f19f2e947de15fdf3b4bcc31 Mon Sep 17 00:00:00 2001 From: smmathews-bw-boston Date: Tue, 10 Oct 2023 07:57:07 -0400 Subject: [PATCH] remove warning from unused variable --- roaringbitmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roaringbitmap.c b/roaringbitmap.c index e3308bf..7022ed7 100644 --- a/roaringbitmap.c +++ b/roaringbitmap.c @@ -2062,7 +2062,6 @@ Datum rb_runoptimize(PG_FUNCTION_ARGS) { bytea *serializedbytes = PG_GETARG_BYTEA_P(0); roaring_bitmap_t *r; - bool optimized; size_t expectedsize; r = roaring_bitmap_portable_deserialize(VARDATA(serializedbytes)); @@ -2071,7 +2070,7 @@ rb_runoptimize(PG_FUNCTION_ARGS) { (errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED), errmsg("bitmap format is error"))); - optimized = roaring_bitmap_run_optimize(r); + roaring_bitmap_run_optimize(r); expectedsize = roaring_bitmap_portable_size_in_bytes(r); serializedbytes = (bytea *) palloc(VARHDRSZ + expectedsize);