Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit135724e

Browse files
committed
Fix "variable not used" warnings when USE_WIDE_UPPER_LOWER is not
defined.
1 parentff81aa3 commit135724e

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(constchar*str,intlen)
244244
{
245245
char*out;
246+
#ifdefUSE_WIDE_UPPER_LOWER
246247
Oidcollation=DEFAULT_COLLATION_OID;/*TODO*/
248+
#endif
247249

248250
if (len==0)
249251
returnpstrdup("");

‎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,intlen)
288288
{
289289
TParser*prs= (TParser*)palloc0(sizeof(TParser));
290-
Oidcollation=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+
Oidcollation=DEFAULT_COLLATION_OID;/*TODO*/
303+
303304
prs->usewide= true;
304305
if (lc_ctype_is_c(collation) )
305306
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp