Skip to Content.
Sympa Menu

freetds - RE: [freetds] warnings and oddities

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Marquess, Dustin" <Dustin.Marquess AT allegiancetelecom.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] warnings and oddities
  • Date: Tue, 9 Dec 2003 09:12:54 -0600

Just curious if you've tried compiling FreeTDS using Tru64's cc compiler?
If not, I can give it a shot today. Sometimes it picks-out a few problems
that gcc doesn't.

-Dustin

> -----Original Message-----
> From: Lowden, James K [mailto:LowdenJK AT bernstein.com]
> Sent: Monday, December 08, 2003 4:38 PM
> To: 'TDS Development Group'
> Subject: [freetds] warnings and oddities
>
> I might be the first person to compile yesterday's snapshow
> with gcc 3.3 on
> Tru64. It griped 114 warnings, and some apparent misdetections, too.
> Attached.
>
> Some of the complaints are about not declaring vsnprintf(3),
> even though
> it's installed and recognized by configure. Evidence below.
>
> There are some warnings I just don't know how to avoid, and
> some I think we
> should advise be turned off, e.g.:
>
> replacements/iconv.c:200: warning: cast from pointer to
> integer of different
> size
>
> That line is:
>
> if ((int)cd == UCS2LE_ASCII && !isascii(**inbuf)) {
>
> We know perfectly well that "cd", while declared an iconv_t,
> contains an
> enumerated value, an int. So we *cast* it, and still the
> warning? What
> warning-proof syntax can we use?
>
> Here's my favorite:
>
> tds/config.c:810: warning: subscript has type `char'
>
> Uh huh. Rules of the game are that a C char is implicitly
> promoted to int,
> and sizeof(char)<=sizeof(int) on *every* platform. It can't
> be an issue
> unless the array has >127 elements.
>
> <<warnings.txt>> Anyway, the whole list is attached for your
> perusal.
>
> --jkl
>
> Setup:
>
> $ uname -a
> OSF1 dec050.beehive.com V4.0 1530 alpha
> $ ../configure --prefix=/usr/users/jklowden/local --with-tdsver=7.0
> --disable-libiconv
>
> Installed flavors of printf:
>
> $ nm /usr/lib/libc.a |grep ^[a-z]*printf |cut -f1 -d' ' |sort |uniq
> fprintf
> fwprintf
> printf
> snprintf
> sprintf
> swprintf
> vfprintf
> vfwprintf
> vprintf
> vsnprintf
> vsprintf
> vswprintf
> vwprintf
> wprintf
>
> $ grep -i print include/config.h
> /* Define to 1 if you have the `asprintf' function. */
> /* #undef HAVE_ASPRINTF */
> /* Define to 1 if you have the `vasprintf' function. */
> /* #undef HAVE_VASPRINTF */
> /* Define to 1 if you have the `vsnprintf' function. */
> #define HAVE_VSNPRINTF 1
> /* Define to 1 if you have the `_bprintf' function. */
> /* #undef HAVE__BPRINTF */
> /* Define to 1 if you have the `_vbprintf' function. */
> /* #undef HAVE__VBPRINTF */
>
>
> -----------------------------------------
> The information contained in this transmission may contain
> privileged and confidential information and is intended only
> for the use of the person(s) named above. If you are not the
> intended recipient, or an employee or agent responsible for
> delivering this message to the intended recipient, any
> review, dissemination, distribution or duplication of this
> communication is strictly prohibited. If you are not the
> intended recipient, please contact the sender immediately by
> reply e-mail and destroy all copies of the original message.
> Please note that we do not accept account orders and/or
> instructions by e-mail, and therefore will not be responsible
> for carrying out such orders and/or instructions.
>
>




Archive powered by MHonArc 2.6.24.

Top of Page