From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-odbc@postgresql.org
To: pgsql-interfaces@postgresql.org
Subject: Unportable code in odbc's dlg_specific.h
Date: Mon, 19 Feb 2001 18:24:25 -0500
Message-ID: <2779.982625065@sss.pgh.pa.us> (raw)
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:
# ifdef ODBCINSTDIR
# 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql-odbc@postgresql.org
Subject: Re: Unportable code in odbc's dlg_specific.h
In-Reply-To: <2779.982625065@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox