Skip site navigation (1) Skip section navigation (2)

Unportable code in odbc's dlg_specific.h

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-odbc(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Unportable code in odbc's dlg_specific.h
Date: 2001-02-19 23:24:25
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfacespgsql-odbc
I tried compiling ODBC with HP's C compiler today, for the first time
ever, and was startled by the number and variety of the warnings :-(.

The bulk of the problem seems to be a blithe assumption that char ==
unsigned char, which is probably not worth trying to clean up right
now.  But another thing it didn't like was in dlg_specific.h:

#  define ODBCINST_INI    ODBCINSTDIR "/odbcinst.ini"
# else
#  define ODBCINST_INI    "/etc/odbcinst.ini"
#  warning "location of odbcinst.ini file defaulted to /etc"
# endif

My C99 spec agrees with HP's compiler that there is no such directive
as #warning.  The value of having this message seems minimal to me,
certainly not worth the risk that ODBC will fail to compile at all
on compilers pickier than gcc.  Any objection to taking it out?

			regards, tom lane

pgsql-odbc by date

Next:From: Andrea AimeDate: 2001-02-20 09:50:17
Subject: Strange behaviour with Autocad/ODBC
Previous:From: Alfonso PenicheDate: 2001-02-19 17:34:57
Subject: Re:

pgsql-interfaces by date

Next:From: Thomas LockhartDate: 2001-02-20 04:25:39
Subject: Re: terminal psql: wrong console keystrokes
Previous:From: Cedar CoxDate: 2001-02-19 22:19:09
Subject: Re: passing values to a function

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group