[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN][PATCH]Suppress deprecation warnings in VC8.0

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2005-08-20 10:24:29 CEST

Stefan Fuhrmann wrote:
> Hi dev,
>
> this one is very low risk. However, it probably does not cover
> all those noisy warnings. It's still a great relieve, though.
>
> [[[
> Define *_DEPRECATE macros in stdafx.h files
> to prevent a flood warnings when compiling with VC8.0.
> ]]]

I kinda don't like this patch:
turning off warnings isn't a good idea, I'd rather have a patch which
would get rid of the warnings by *solving* them.
I know the new 'secure' string functions aren't available in VS.NET2003,
but how about something like this:

#ifndef #WIN64
#define newstringcompare(a,b,c,d) strncmp(a,b,c)
#endif

and then change the code everywhere we use those 'unsafe' string
functions with the new ones, which will just fall back to the ones we
use now if we don't have the new ones.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Aug 20 10:24:57 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.