X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1DA604761D2 for ; Fri, 7 Feb 2003 13:27:20 -0500 (EST) Received: from anchor-post-39.mail.demon.net (anchor-post-39.mail.demon.net [194.217.242.80]) by postgresql.org (Postfix) with ESMTP id 4447C4762B4 for ; Fri, 7 Feb 2003 13:13:20 -0500 (EST) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-39.mail.demon.net with esmtp (Exim 3.36 #2) id 18hD02-0002hJ-0d for pgsql-odbc@postgresql.org; Fri, 07 Feb 2003 18:13:19 +0000 Received: from localhost ([127.0.0.1] ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.36 #1 (Debian)) id 18hD01-0004vn-00 for ; Fri, 07 Feb 2003 18:13:17 +0000 Subject: ConnInfo assumes signed char From: Oliver Elphick To: pgsql-odbc@postgresql.org Content-Type: text/plain Organization: LFIX Limited Message-Id: <1044641597.6898.141.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 07 Feb 2003 18:13:17 +0000 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/42 X-Sequence-Number: 2660 ConnInfo, defined in connection.h, assumes that char = signed char. This is not true of Linux on arm, powerpc and s390, and possibly other platforms. As a result: gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c dlg_specific.c -MT dlg_specific.lo -MD -MP -MF .deps/dlg_specific.TPlo -fPIC -DPIC -o dlg_specific.lo dlg_specific.c: In function `getDSNdefaults': dlg_specific.c:398: warning: comparison is always false due to limited range of data type dlg_specific.c:400: warning: comparison is always false due to limited range of data type dlg_specific.c:402: warning: comparison is always false due to limited range of data type dlg_specific.c:404: warning: comparison is always false due to limited range of data type dlg_specific.c:406: warning: comparison is always false due to limited range of data type dlg_specific.c: In function `getDSNinfo': dlg_specific.c:484: warning: comparison is always false due to limited range of data type dlg_specific.c:491: warning: comparison is always false due to limited range of data type dlg_specific.c:498: warning: comparison is always false due to limited range of data type dlg_specific.c:505: warning: comparison is always false due to limited range of data type dlg_specific.c:512: warning: comparison is always false due to limited range of data type The problem still exists in current CVS. Where char may contain a negative value, it should explicitly be declared as signed char. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "But the LORD is in his holy temple; let all the earth keep silence before him." Habakkuk 2:20