Re: [sqlite] SQLite Build in M$ Visual Studio 250+ warnings

2007-08-23 Thread Andrew Finkenstadt
I use this framework to build sqlite on VS2005.SP1:

// \file import_sqlite.cpp
// \brief Import the SQLITE database.
//
#pragma warning(push, 0)
#pragma warning(disable: 4701)
#pragma runtime_checks("", off)
// enable multi-thread mode.
#define THREADSAFE 1

// optimize for performance by using large block sizes by default.
#define SQLITE_DEFAULT_PAGE_SIZE 32768

#include "../../src/sqlite/sqlite3.c"
#pragma warning(pop)


I choose to assume that sqlite is well-tested and that any warnings about
portability, 64-bit cleanliness, loss of data precision, structure packing,
conversion operations, and runtime conversions that exceed the size of the
destination argument (by truncation) are immaterial to correct operation and
are safe to ignore.

Since my build environment insists on "treat warnings as errors", I use this
framework to successful use it in my applications.

Hope that helps.

-- andy

On 8/23/07, Cory Nelson <[EMAIL PROTECTED]> wrote:
>
> On 8/23/07, Andre du Plessis <[EMAIL PROTECTED]> wrote:
> > Just wanted to check with you guys that my build is actually stable in
> > Visual Studio 2005, I get about 250+ warnings when building SQLite I can
> > come back to you with more details if this is not correct, just want to
> > make sure that's seems correct, ive been getting the occasional weird
> > SQLite error, I was just wondering if my build is not a bit buggy, I
> > have added the THREADSAFE in the defines though so I don't think it is,
> > just don't want to corrupt my db's.
> >
>
> The warnings are normal - the author thinks they are spurious.
>
> --
> Cory Nelson
>
>
> -
> To unsubscribe, send email to [EMAIL PROTECTED]
>
> -
>
>


Re: [sqlite] SQLite Build in M$ Visual Studio 250+ warnings

2007-08-23 Thread Cory Nelson
On 8/23/07, Andre du Plessis <[EMAIL PROTECTED]> wrote:
> Just wanted to check with you guys that my build is actually stable in
> Visual Studio 2005, I get about 250+ warnings when building SQLite I can
> come back to you with more details if this is not correct, just want to
> make sure that's seems correct, ive been getting the occasional weird
> SQLite error, I was just wondering if my build is not a bit buggy, I
> have added the THREADSAFE in the defines though so I don't think it is,
> just don't want to corrupt my db's.
>

The warnings are normal - the author thinks they are spurious.

-- 
Cory Nelson

-
To unsubscribe, send email to [EMAIL PROTECTED]
-



[sqlite] SQLite Build in M$ Visual Studio 250+ warnings

2007-08-23 Thread Andre du Plessis
Just wanted to check with you guys that my build is actually stable in
Visual Studio 2005, I get about 250+ warnings when building SQLite I can
come back to you with more details if this is not correct, just want to
make sure that's seems correct, ive been getting the occasional weird
SQLite error, I was just wondering if my build is not a bit buggy, I
have added the THREADSAFE in the defines though so I don't think it is,
just don't want to corrupt my db's.

 

Thanks.