From 2fe560dc5813e14c4b76ce7aef3d3a968a001169 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 18 Jan 2025 13:08:11 -0800 Subject: [PATCH] Fixed extra-semi warnings [skip ci] --- src/hnsw.h | 2 +- src/hnswutils.c | 6 +++--- src/ivfutils.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hnsw.h b/src/hnsw.h index 1fb0c24..5102bfb 100644 --- a/src/hnsw.h +++ b/src/hnsw.h @@ -126,7 +126,7 @@ typedef struct HnswNeighborArray HnswNeighborArray; #define HnswPtrDeclare(type, relptrtype, ptrtype) \ relptr_declare(type, relptrtype); \ - typedef union { type *ptr; relptrtype relptr; } ptrtype; + typedef union { type *ptr; relptrtype relptr; } ptrtype /* Pointers that can be absolute or relative */ /* Use char for DatumPtr so works with Pointer */ diff --git a/src/hnswutils.c b/src/hnswutils.c index 7afed25..c52d2c7 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -1393,7 +1393,7 @@ hnsw_halfvec_support(PG_FUNCTION_ARGS) }; PG_RETURN_POINTER(&typeInfo); -}; +} FUNCTION_PREFIX PG_FUNCTION_INFO_V1(hnsw_bit_support); Datum @@ -1406,7 +1406,7 @@ hnsw_bit_support(PG_FUNCTION_ARGS) }; PG_RETURN_POINTER(&typeInfo); -}; +} FUNCTION_PREFIX PG_FUNCTION_INFO_V1(hnsw_sparsevec_support); Datum @@ -1419,4 +1419,4 @@ hnsw_sparsevec_support(PG_FUNCTION_ARGS) }; PG_RETURN_POINTER(&typeInfo); -}; +} diff --git a/src/ivfutils.c b/src/ivfutils.c index 0d8f77f..da241ee 100644 --- a/src/ivfutils.c +++ b/src/ivfutils.c @@ -355,7 +355,7 @@ ivfflat_halfvec_support(PG_FUNCTION_ARGS) }; PG_RETURN_POINTER(&typeInfo); -}; +} FUNCTION_PREFIX PG_FUNCTION_INFO_V1(ivfflat_bit_support); Datum @@ -370,4 +370,4 @@ ivfflat_bit_support(PG_FUNCTION_ARGS) }; PG_RETURN_POINTER(&typeInfo); -}; +}