Re: [sqlite] compiler warnings (was: AsyncIO fails with current 3.7.15 trunk)

2012-12-07 Thread Hick Gunter
Lucky you ;) With GCC set to "max. bitchiness" and when compiling individual sources I need to add the following flags (not all may be currently necessary, but were so in the past). SQLite still works though :))) alter= -Wno-cast-qual -Wno-write-strings -Wno-sign-compare

Re: [sqlite] Compiler warnings with 3.7.12

2012-05-15 Thread Black, Michael (IS)
: EXT :[sqlite] Compiler warnings with 3.7.12 I just compiled the the sqlite3 shell from the 3.7.12 amalgamation download. I got the following warnings: shell.c:71:0: warning: "popen" redefined [enabled by default] In file included from shell.c:33:0: [mingw path]\bin\../lib/gcc/x86_64-w6

[sqlite] Compiler warnings with 3.7.12

2012-05-14 Thread Baruch Burstein
I just compiled the the sqlite3 shell from the 3.7.12 amalgamation download. I got the following warnings: shell.c:71:0: warning: "popen" redefined [enabled by default] In file included from shell.c:33:0: [mingw path]\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/include/s

Re: [sqlite] Compiler Warnings building Win x64 with VS2010

2011-11-03 Thread Richard Hipp
On Thu, Nov 3, 2011 at 2:38 PM, GB wrote: > When building SQLite for Windows64 using Visual Studio 2010, I get lots of > warnings concerning 64Bit Values being assigned to 32Bit Variables. These > occur when the result of pointer arithmetics is assigned to int variables > since in Windows64 ints

[sqlite] Compiler Warnings building Win x64 with VS2010

2011-11-03 Thread GB
When building SQLite for Windows64 using Visual Studio 2010, I get lots of warnings concerning 64Bit Values being assigned to 32Bit Variables. These occur when the result of pointer arithmetics is assigned to int variables since in Windows64 ints are 32Bits wide while pointers are 64Bit. How ca

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-20 Thread Samuel Adam
On Sat, 19 Feb 2011 10:37:42 -0500, Afriza N. Arief wrote: > On Sat, Feb 19, 2011 at 6:27 AM, Samuel Adam wrote: > >> A FAQ[2] isn’t enough, as we can see. >> >> To put it another way: Bug reporters should have probable cause before >> they bug others. A compiler warning is only a reasonable

Re: [sqlite] Compiler warnings in R-Tree code under Visual Studio Express

2011-02-19 Thread Jeff Archer
>Date: Fri, 18 Feb 2011 06:13:37 -0800 (PST) >From: Marian Cascaval > >I'm suspecting there's something wrong with Studio Express C++. >I use both 2008 and 2010 and I notice on 2008 that the IDE loses track of code >in case of large source files. Sometimes comments that should have a certain >colo

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-19 Thread Afriza N. Arief
On Sat, Feb 19, 2011 at 6:27 AM, Samuel Adam wrote: > A FAQ[2] isn’t enough, as we can see. > > To put it another way: Bug reporters should have probable cause before > they bug others. A compiler warning is only a reasonable articulable > suspicion. Note that “probable cause” doesn’t imply co

Re: [sqlite] Compiler warnings in R-Tree code under Visual

2011-02-19 Thread Jeff Archer
>Date: Fri, 18 Feb 2011 13:12:09 + >From: "Black, Michael (IS)" > >I'm of the opinion that all such warnings should be permanently fixed. Such warnings do point to potential problems. >And not by disabling the warning but by fixing the code (explicit casts for example). > >How many people try

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-19 Thread Black, Michael (IS)
Just 30 years of developing C code and too-many-to-count projects where we always had a goal of zero-warnings no matter what switch you used. It's really hard (as the SQLite guys can attest I'm sure) to make a cross-platform system. We use each compiler's capabilities as they are all different

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-18 Thread Jay A. Kreibich
On Fri, Feb 18, 2011 at 03:25:46PM +0100, Jean-Denis Muys scratched on the wall: > > On 18 f?vr. 2011, at 15:12, Philip Graham Willoughby wrote: > > > Adding casts to get rid of warnings is usually the wrong answer in my > > experience. Certainly you should never cast the return value of a > > fu

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-18 Thread Jean-Denis Muys
On 18 févr. 2011, at 16:51, Philip Graham Willoughby wrote: > >> malloc returns a 64 bit pointer of type void * > > No, from the caller's point of view it returns an int if you haven't included > . Indeed. I assumed the programmer had included the standard headers. On my system, any implici

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-18 Thread Philip Graham Willoughby
On 18 Feb 2011, at 14:25, Jean-Denis Muys wrote: > On 18 févr. 2011, at 15:12, Philip Graham Willoughby wrote: > >> Adding casts to get rid of warnings is usually the wrong answer in my >> experience. Certainly you should never cast the return value of a function >> call because that hides the

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-18 Thread Jean-Denis Muys
On 18 févr. 2011, at 15:12, Philip Graham Willoughby wrote: > Adding casts to get rid of warnings is usually the wrong answer in my > experience. Certainly you should never cast the return value of a function > call because that hides the problems you get when it's implicitly returning > int b

Re: [sqlite] Compiler warnings in R-Tree code under Visual Studio Express

2011-02-18 Thread Marian Cascaval
. Arief To: General Discussion of SQLite Database Sent: Thu, February 17, 2011 7:26:33 AM Subject: [sqlite] Compiler warnings in R-Tree code under Visual Studio Express Hi, Microsoft Visual Studio Express C++ is available for free from http://www.microsoft.com/express/Downloads/#2010-Visual-CPP I

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-18 Thread Philip Graham Willoughby
On 18 Feb 2011, at 13:12, Black, Michael (IS) wrote: > I'm of the opinion that all such warnings should be permanently fixed. Such > warnings do point to potential problems. > And not by disabling the warning but by fixing the code (explicit casts for > example). It's been a while since I last

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-18 Thread Richard Hipp
__ > From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] on > behalf of Nick Shaw [nick.s...@citysync.co.uk] > Sent: Friday, February 18, 2011 3:50 AM > To: General Discussion of SQLite Database > Subject: EXT :Re: [sqlite] Compiler wa

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-18 Thread Black, Michael (IS)
_ From: sqlite-users-boun...@sqlite.org [sqlite-users-boun...@sqlite.org] on behalf of Nick Shaw [nick.s...@citysync.co.uk] Sent: Friday, February 18, 2011 3:50 AM To: General Discussion of SQLite Database Subject: EXT :Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress A

Re: [sqlite] Compiler warnings in R-Tree code under Visual StudioExpress

2011-02-18 Thread Nick Shaw
Afriza N. Arief wrote: > I tried to compile SQLite 3.7.5 with SQLITE_ENABLE_RTREE=1 and got the following warnings: > > sqlite3.c(120736): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data > sqlite3.c(120749): warning C4244: '+=' : conversion from 'double' to 'float',

[sqlite] Compiler warnings in R-Tree code under Visual Studio Express

2011-02-16 Thread Afriza N. Arief
Hi, Microsoft Visual Studio Express C++ is available for free from http://www.microsoft.com/express/Downloads/#2010-Visual-CPP I tried to compile SQLite 3.7.5 with SQLITE_ENABLE_RTREE=1 and got the following warnings: sqlite3.c(120736): warning C4244: '=' : conversion from 'double' to 'float', p

[sqlite] Compiler warnings in contributed extension-functions.c

2010-05-30 Thread Seth Falcon
Hi, I've integrated the extension-functions.c code into an R package so that these functions can be used in R via RSQLite. In the process, I came across a couple of compiler warnings that seemed to have easy fixes. I could not find contact information for Liam Healy so am posting this here. Tha

Re: [sqlite] compiler warnings with 3.6.20 on Visual Studio 2005 (with all updates)

2009-11-17 Thread D. Richard Hipp
On Nov 17, 2009, at 3:39 PM, r...@lambdares.com wrote: > > Hello, > > I'm receiving the following compiler warnings with VS2005 for both > Win32 and x64 platforms. Harmless. http://www.sqlite.org/src/vinfo/f1c09acaca3e205acf5b077c9b2d0fe35f035c1e > > -- Rich > > .\sqlite3.c(49492) : warnin

[sqlite] compiler warnings with 3.6.20 on Visual St udio 2005 (with all updates)

2009-11-17 Thread rich
Hello, I'm receiving the following compiler warnings with VS2005 for both Win32 and x64 platforms. -- Rich .\sqlite3.c(49492) : warning C4244: 'function' : conversion from 'ynVar' to 'int', possible loss of data .\sqlite3.c(51336) : warning C4244: 'return' : conversion from 'ynVar' to 'int

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-30 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nicolas Williams wrote: > Oh, I think you meant that the L suffix would break on anything other > than LP64 or ILP64 models. Correct. L means long. On platforms where long is 32 bits, shifting a long value by more than 32 bits will give zero. > I'm

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-30 Thread Nicolas Williams
On Tue, Sep 29, 2009 at 05:28:39PM -0700, Roger Binns wrote: > Nicolas Williams wrote: > > On Tue, Sep 29, 2009 at 11:21:30AM -0700, Roger Binns wrote: > >> Nicolas Williams wrote: > >>> If you move the cast to the left the warning should go away: > >>> ((sqlite3_int64)(1L<<63)) > >> And this is w

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-29 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nicolas Williams wrote: > On Tue, Sep 29, 2009 at 11:21:30AM -0700, Roger Binns wrote: >> Nicolas Williams wrote: >>> If you move the cast to the left the warning should go away: >>> ((sqlite3_int64)(1L<<63)) >> And this is why making warnings go away

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-29 Thread Nicolas Williams
On Tue, Sep 29, 2009 at 12:05:21PM -0700, Jim Showalter wrote: > Warnings are never harmless--they clutter the build output and > introduce cognitive dissonance when trying to see if a build is clean > or not. > > I worked on a project where they hadn't enabled warnings during > development bec

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-29 Thread Nicolas Williams
On Tue, Sep 29, 2009 at 11:21:30AM -0700, Roger Binns wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Nicolas Williams wrote: > > If you move the cast to the left the warning should go away: > > ((sqlite3_int64)(1L<<63)) > > And this is why making warnings go away leads to bugs. Th

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-29 Thread Jim Showalter
t: Tuesday, September 29, 2009 3:38 AM Subject: Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10 > > On Sep 27, 2009, at 5:28 PM, Dr. David Kirkby wrote: > >> "sqlite3.c", line 18731: warning: integer overflow detected: op >> "<<&quo

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-29 Thread D. Richard Hipp
On Sep 29, 2009, at 2:21 PM, Roger Binns wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Nicolas Williams wrote: >> If you move the cast to the left the warning should go away: >> ((sqlite3_int64)(1L<<63)) > > And this is why making warnings go away leads to bugs. The > replacem

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-29 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nicolas Williams wrote: > If you move the cast to the left the warning should go away: > ((sqlite3_int64)(1L<<63)) And this is why making warnings go away leads to bugs. The replacement above will only work if sizeof(long)==sizeof(long long) which i

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-29 Thread Nicolas Williams
On Tue, Sep 29, 2009 at 06:38:44AM -0400, D. Richard Hipp wrote: > > On Sep 27, 2009, at 5:28 PM, Dr. David Kirkby wrote: > > > "sqlite3.c", line 18731: warning: integer overflow detected: op "<<" > > "sqlite3.c", line 18748: warning: integer overflow detected: op "<<" > > Both cases are complai

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-29 Thread D. Richard Hipp
On Sep 27, 2009, at 5:28 PM, Dr. David Kirkby wrote: > "sqlite3.c", line 18731: warning: integer overflow detected: op "<<" > "sqlite3.c", line 18748: warning: integer overflow detected: op "<<" Both cases are complaining about a constant: (0x1f<<28)Both are harmless. > "sqlite3.c", line

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-28 Thread Dr. David Kirkby
D. Richard Hipp wrote: >> Thank you. >> >> I understand you can't fix these warnings since you don't have >> access to >> such machines. Would you like access? If so, I can give you access >> to a >> 16-core Sun T5240 at the university of Washington, with runs Solaris >> 10 >> update 7 (lates

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-28 Thread D. Richard Hipp
On Sep 28, 2009, at 10:15 AM, Dr. David Kirkby wrote: > Roger Binns wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Dr. David Kirkby wrote: >>> "sqlite3.c", line 18731: warning: integer overflow detected: op "<<" >>> "sqlite3.c", line 18748: warning: integer overflow detected: op

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-28 Thread Dr. David Kirkby
Roger Binns wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Dr. David Kirkby wrote: >> "sqlite3.c", line 18731: warning: integer overflow detected: op "<<" >> "sqlite3.c", line 18748: warning: integer overflow detected: op "<<" >> "sqlite3.c", line 32546: warning: statement not reache

Re: [sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-27 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dr. David Kirkby wrote: > "sqlite3.c", line 18731: warning: integer overflow detected: op "<<" > "sqlite3.c", line 18748: warning: integer overflow detected: op "<<" > "sqlite3.c", line 32546: warning: statement not reached > "sqlite3.c", line 69160: w

[sqlite] Compiler warnings with Sun Studio 12.1 on Solaris 10

2009-09-27 Thread Dr. David Kirkby
"sqlite3.c", line 18731: warning: integer overflow detected: op "<<" "sqlite3.c", line 18748: warning: integer overflow detected: op "<<" "sqlite3.c", line 32546: warning: statement not reached "sqlite3.c", line 69160: warning: integer overflow detected: op "<<"

Re: [sqlite] compiler warnings

2004-11-05 Thread Cory Nelson
send in a patch ;) On Fri, 5 Nov 2004 08:33:51 -0600, Stober, Mel <[EMAIL PROTECTED]> wrote: > When I compile the 3.0.8 source with VC++ 6.0 (SP5 installed) compiler as a > DLL, the compiler spews out 131 warnings about type mismatch, integral size > mismatch, conversion from '__int64 ' to 'int,

[sqlite] compiler warnings

2004-11-05 Thread Stober, Mel
When I compile the 3.0.8 source with VC++ 6.0 (SP5 installed) compiler as a DLL, the compiler spews out 131 warnings about type mismatch, integral size mismatch, conversion from '__int64 ' to 'int, and a host of other miscellaneous warnings. Any thoughts about the SQLite project programmers cleani

[sqlite] compiler warnings...

2004-01-06 Thread Ralph Wetzel
Hi! When compiled (with VC++) SQLite produces about 350 and more compiler (level 3/4) warnings. Is there any effort in progress to reduce / eliminate these warnings, is there a possibility to contribute to lower the number of warnings, or doesn't simply care anyone about *grin* ?? Greetings, R