Skip to Content.
Sympa Menu

freetds - Re: error handling

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Geoff Winkless" <geoff AT farmline.com>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: error handling
  • Date: Mon, 24 Jan 2000 16:09:22 -0000


"Bob Kline" <bkline AT rksystems.com> writes:
> That's not a problem with C. That's just the default behavior of your
> particular compiler. I haven't seen a C compiler in more than twenty
> years which didn't have an option available for cranking up the warning
> level (and of course some have a warning level sufficiently high to
> catch this problem as the default). Can't tell from your message which
> compiler you're using, so I'll assume gcc, in which case you'll get all
> the warnings you want with -Wall.

Yep, I get the warning with Wall (which was how I discovered the problem).
I'm not particularly annoyed with gcc, I'm actually more annoyed with gdb
for telling me that the program was treating the variable correctly whereas
in fact the compiler had stuffed it in as an int.

Geoff





Archive powered by MHonArc 2.6.24.

Top of Page