Skip to content

Commit 6530adc

Browse files
committed
[PGPRO-6780] Fix Windows warnings
1 parent 1ffa817 commit 6530adc

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/rum.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -868,9 +868,9 @@ extern Datum rum_anyarray_distance(PG_FUNCTION_ARGS);
868868

869869

870870
/* GUC parameters */
871-
extern PGDLLIMPORT int RumFuzzySearchLimit;
872-
extern PGDLLIMPORT float8 RumArraySimilarityThreshold;
873-
extern PGDLLIMPORT int RumArraySimilarityFunction;
871+
extern int RumFuzzySearchLimit;
872+
extern float8 RumArraySimilarityThreshold;
873+
extern int RumArraySimilarityFunction;
874874

875875

876876
/*

src/rum_ts_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ typedef struct
172172
DocRepresentation *end;
173173
} Extention;
174174

175-
static float weights[] = {1.0/0.1f, 1.0/0.2f, 1.0/0.4f, 1.0/1.0f};
175+
static float weights[] = {1.0f/0.1f, 1.0f/0.2f, 1.0f/0.4f, 1.0f/1.0f};
176176

177177
/* A dummy WordEntryPos array to use when haspos is false */
178178
static WordEntryPosVector POSNULL = {

src/rumsort.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ rum_item_size(RumTuplesortstate * state)
208208
else if (state->copytup == copytup_rumitem)
209209
return sizeof(RumScanItem);
210210
else
211+
{
211212
elog (FATAL, "Unknown RUM state");
213+
return 0;
214+
}
212215
}
213216

214217
static void

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy