From 67e317141b5482f44fc7a4f767d650f4b1762553 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 6 May 2021 16:25:43 -0700 Subject: [PATCH] Fixed multiple definition error with GCC 10 - #4 --- CHANGELOG.md | 4 ++++ src/ivfflat.c | 1 + src/ivfflat.h | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95f0548..f7d288f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.4 (unreleased) + +- Fixed multiple definition error with GCC 10 + ## 0.1.3 (2021-05-06) - Added Dockerfile diff --git a/src/ivfflat.c b/src/ivfflat.c index 93e1d30..4192cfb 100644 --- a/src/ivfflat.c +++ b/src/ivfflat.c @@ -6,6 +6,7 @@ #include "utils/guc.h" #include "utils/selfuncs.h" +int ivfflat_probes; static relopt_kind ivfflat_relopt_kind; /* diff --git a/src/ivfflat.h b/src/ivfflat.h index 8d28b81..1adab84 100644 --- a/src/ivfflat.h +++ b/src/ivfflat.h @@ -38,7 +38,7 @@ #endif /* Variables */ -int ivfflat_probes; +extern int ivfflat_probes; typedef struct VectorArrayData {