Skip to content

Commit 135724e

Browse files
committed
Fix "variable not used" warnings when USE_WIDE_UPPER_LOWER is not
defined.
1 parent ff81aa3 commit 135724e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/backend/tsearch/ts_locale.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ char *
243243
lowerstr_with_len(const char *str, int len)
244244
{
245245
char *out;
246+
#ifdef USE_WIDE_UPPER_LOWER
246247
Oid collation = DEFAULT_COLLATION_OID; /*TODO*/
248+
#endif
247249

248250
if (len == 0)
249251
return pstrdup("");

src/backend/tsearch/wparser_def.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ static TParser *
287287
TParserInit(char *str, int len)
288288
{
289289
TParser *prs = (TParser *) palloc0(sizeof(TParser));
290-
Oid collation = DEFAULT_COLLATION_OID; /*TODO*/
291290

292291
prs->charmaxlen = pg_database_encoding_max_length();
293292
prs->str = str;
@@ -300,6 +299,8 @@ TParserInit(char *str, int len)
300299
*/
301300
if (prs->charmaxlen > 1)
302301
{
302+
Oid collation = DEFAULT_COLLATION_OID; /*TODO*/
303+
303304
prs->usewide = true;
304305
if ( lc_ctype_is_c(collation) )
305306
{

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