freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "James K. Lowden" <jklowden AT freetds.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] cast to void?
- Date: Mon, 3 Dec 2007 20:12:03 -0500
Christos Zoulas wrote:
> On Dec 3, 7:29pm, daniel.junkmail AT gmail.com ("Daniel Corbe") wrote:
> -- Subject: Re: [freetds] cast to void?
>
> | Most likely to squash a warning on some random crappy compiler.
> | Believe it or not not all compilers follow the standard religiously.
>
> I've yet to see a compiler that gives a warning on that...
I'm sorry about the noise.
It's my own code and my own friendly GNU C compiler. I thought Frediano
had changed it. (Sorry, Freddy!)
memset((void*)pnullrep->bindval, ' ', bindlen);
bindval is defined as
const BYTE *
and the compiler issues a warning if you pass a const pointer to memset,
as well it should. This is the one place where the data pointed to by
bindval is set to something; everywhere else it's read-only.
Next time, I think I'll compile first and post second.
--jkl
-
[freetds] cast to void?,
James K. Lowden, 12/03/2007
-
Re: [freetds] cast to void?,
Daniel Corbe, 12/03/2007
-
Re: [freetds] cast to void?,
Christos Zoulas, 12/03/2007
-
Re: [freetds] cast to void?,
James K. Lowden, 12/03/2007
-
Re: [freetds] cast to void?,
ZIGLIO, Frediano, VF-IT, 12/04/2007
- Re: [freetds] cast to void?, James K. Lowden, 12/04/2007
- Re: [freetds] cast to void?, Christos Zoulas, 12/04/2007
-
Re: [freetds] cast to void?,
ZIGLIO, Frediano, VF-IT, 12/04/2007
-
Re: [freetds] cast to void?,
James K. Lowden, 12/03/2007
-
Re: [freetds] cast to void?,
Christos Zoulas, 12/03/2007
-
Re: [freetds] cast to void?,
Daniel Corbe, 12/03/2007
Archive powered by MHonArc 2.6.24.