Skip to Content.
Sympa Menu

freetds - RE: [freetds] casts and warnings

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: christos AT zoulas.com (Christos Zoulas)
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] casts and warnings
  • Date: Thu, 10 Mar 2005 08:53:09 -0500

On Mar 10, 1:18pm, Frediano.Ziglio AT vodafone.com ("ZIGLIO, Frediano, VF-IT")
wrote:
-- Subject: RE: [freetds] casts and warnings

| Happily gcc under HP-UX give me this warning. Perhaps a better way is to
| define a macro like TDS_ISSPACE (already defined in some C file) to
| handle this case. This can cause a buffer reading underflow with
| undefined behavior (core or bad results). If I remember under Linux the
| "array" is defined from -128 to 255 to handle signed chars correctly.

You are going to have to do this for all the is*() macros, but yes, that
would save you typing a few characters each time you use it.

christos




Archive powered by MHonArc 2.6.24.

Top of Page