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); -}; +}