From eb1ee9e63f1076753769f4ef1e8e0a93898a3e34 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Fri, 29 Mar 2002 07:48:56 +0000
Subject: [PATCH] Fix ODBC warnings about missing parens and pg_ismb not used
 (added #ifdef NOT_USED).

---
 src/interfaces/odbc/multibyte.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/interfaces/odbc/multibyte.c b/src/interfaces/odbc/multibyte.c
index 9c8c7dae6a1..3cc3efe350a 100644
--- a/src/interfaces/odbc/multibyte.c
+++ b/src/interfaces/odbc/multibyte.c
@@ -59,6 +59,7 @@ pg_CS CS_Table[] =
 	{ "OTHER", OTHER }
 };
 
+#ifdef NOT_USED
 static int
 pg_ismb(int characterset_code)
 {
@@ -70,6 +71,7 @@ pg_ismb(int characterset_code)
 	}
 	return (MB_CHARACTERSET[i]);
 }
+#endif
 
 int
 pg_CS_code(const unsigned char *characterset_string)
@@ -227,8 +229,8 @@ pg_CS_stat(int stat,unsigned int character,int characterset_code)
 				else if (stat == 4 &&
 					character > 0xa0)
 					stat = 3;
-				else if (stat == 3 ||
-					stat < 2 &&
+				else if ((stat == 3 ||
+					stat < 2) &&
 					character > 0xa0)
 					stat = 2;
 				else if (stat == 2)
-- 
GitLab