X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AD3E9474E5C for ; Mon, 10 Feb 2003 01:56:58 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 61FC9474E53 for ; Mon, 10 Feb 2003 01:56:57 -0500 (EST) Received: (qmail 25856 invoked from network); 10 Feb 2003 06:56:56 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 10 Feb 2003 06:56:56 -0000 Received: from tpf.co.jp (3d_note1 [126.0.1.61]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id PAA08592; Mon, 10 Feb 2003 15:56:54 +0900 (JST) Message-ID: <3E474DD0.C6ACA75B@tpf.co.jp> Date: Mon, 10 Feb 2003 15:59:28 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Oliver Elphick Cc: pgsql-odbc@postgresql.org Subject: Re: ConnInfo assumes signed char References: <1044641597.6898.141.camel@linda.lfix.co.uk> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/46 X-Sequence-Number: 2664 Oliver Elphick wrote: > > 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. OK I changed them to *signed char*s (maybe). Thanks. regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/