Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit eb1ee9e

Browse files
committed
Fix ODBC warnings about missing parens and pg_ismb not used (added
#ifdef NOT_USED).
1 parent b2c89fa commit eb1ee9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/interfaces/odbc/multibyte.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ pg_CS CS_Table[] =
5959
{ "OTHER", OTHER }
6060
};
6161

62+
#ifdef NOT_USED
6263
static int
6364
pg_ismb(int characterset_code)
6465
{
@@ -70,6 +71,7 @@ pg_ismb(int characterset_code)
7071
}
7172
return (MB_CHARACTERSET[i]);
7273
}
74+
#endif
7375

7476
int
7577
pg_CS_code(const unsigned char *characterset_string)
@@ -227,8 +229,8 @@ pg_CS_stat(int stat,unsigned int character,int characterset_code)
227229
else if (stat == 4 &&
228230
character > 0xa0)
229231
stat = 3;
230-
else if (stat == 3 ||
231-
stat < 2 &&
232+
else if ((stat == 3 ||
233+
stat < 2) &&
232234
character > 0xa0)
233235
stat = 2;
234236
else if (stat == 2)

0 commit comments

Comments
 (0)