Re: [sqlite] so many warnings on vc6 with warning level 4
Christian Smith a écrit : Gunnar Roth uttered: Hello, i want to use sqlite3 in a sub-project at work. when compiling with warning level 4 with vc6 ( internal philosophy ) , i get over 480 warnings. With warning level 3 there are still 119 left. This leads to problems to convince the project lead of the quality of sqlite3 ( which i do not doubt, as i have used it for my private project since some years). I'd be more worried about using VC6 period. This is a really old release, and is unsupported by MS since something like 2003. Sqlite is pure C, I would be surprised if the c compiler has changed so much since vc6 ... C++ and especially STL is another story. Is there any chance this warnings will be fixed sometime in the future? How are others dealing with this problem at work? Use a current, supported compiler first, then check again. regards, gunnar - To unsubscribe, send email to [EMAIL PROTECTED] - -- /"\ \ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL X - AGAINST MS ATTACHMENTS / \ - To unsubscribe, send email to [EMAIL PROTECTED] - -- Noël Frankinet Gistek Software SA http://www.gistek.net - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] so many warnings on vc6 with warning level 4
Hello Gunnar, You can use this pragma to disable the warnings that don't actually mean anything. #pragma warning (disable: 4786 4666 4100 4786 4146) I debug/develop using VC2005 and release using VC6. C Monday, November 13, 2006, 9:43:02 AM, you wrote: GR> Hello, GR> i want to use sqlite3 in a sub-project at work. GR> when compiling with warning level 4 with vc6 ( internal philosophy ) , i GR> get over 480 warnings. With warning level 3 there are still 119 left. GR> This leads to problems to convince the project lead of the quality of GR> sqlite3 ( which i do not doubt, as i have used it for my private project GR> since some years). GR> Is there any chance this warnings will be fixed sometime in the future? GR> How are others dealing with this problem at work? GR> regards, GR> gunnar GR> - GR> To unsubscribe, send email to [EMAIL PROTECTED] GR> - -- Best regards, Tegmailto:[EMAIL PROTECTED] - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] so many warnings on vc6 with warning level 4
Gunnar Roth uttered: Hello, i want to use sqlite3 in a sub-project at work. when compiling with warning level 4 with vc6 ( internal philosophy ) , i get over 480 warnings. With warning level 3 there are still 119 left. This leads to problems to convince the project lead of the quality of sqlite3 ( which i do not doubt, as i have used it for my private project since some years). I'd be more worried about using VC6 period. This is a really old release, and is unsupported by MS since something like 2003. Is there any chance this warnings will be fixed sometime in the future? How are others dealing with this problem at work? Use a current, supported compiler first, then check again. regards, gunnar - To unsubscribe, send email to [EMAIL PROTECTED] - -- /"\ \ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL X - AGAINST MS ATTACHMENTS / \ - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] so many warnings on vc6 with warning level 4
First, I use the pre-built DLL from the SQLite web site, and then use my compiler's library import utility to generate the appropriate import lib. That saves me all the warnings. Second, examine the actual warnings, not just the count. You'll find that a large number of them are warnings about deprecated library methods such as strcpy. The fact that Microsoft has chosen to deprecate standard library functions is a Microsoft issue rather than an SQLite issue. It's true that a lot of these functions are dangerous in inexperienced and careless hands. It's also true that they're very safe and have been used successfully for 30 years by programmers who understand their limitations and use them appropriately. Examine the warnings, look at the code around them, see if there is any merit to the warnings or if it's more of a chicken little situation. If you can't check all 600, spot check several which you find at random. And remember that there's nothing wrong with strcpy and strcat, as long as the destination buffer is large enough for the string being received. Look for the allocation of that buffer and see how it's come about and how the size is checked. Clay Dowling Gunnar Roth said: > Hello, > i want to use sqlite3 in a sub-project at work. > when compiling with warning level 4 with vc6 ( internal philosophy ) , i > get over 480 warnings. With warning level 3 there are still 119 left. > This leads to problems to convince the project lead of the quality of > sqlite3 ( which i do not doubt, as i have used it for my private project > since some years). > Is there any chance this warnings will be fixed sometime in the future? > How are others dealing with this problem at work? > > regards, > gunnar > > > > - > To unsubscribe, send email to [EMAIL PROTECTED] > - > > -- Simple Content Management http://www.ceamus.com - To unsubscribe, send email to [EMAIL PROTECTED] -
Re: [sqlite] so many warnings on vc6 with warning level 4
Gunnar Roth <[EMAIL PROTECTED]> wrote: > Hello, > i want to use sqlite3 in a sub-project at work. > when compiling with warning level 4 with vc6 ( internal philosophy ) , i > get over 480 warnings. With warning level 3 there are still 119 left. > This leads to problems to convince the project lead of the quality of > sqlite3 ( which i do not doubt, as i have used it for my private project > since some years). > Is there any chance this warnings will be fixed sometime in the future? You'll have to talk with the compiler people at Microsoft about that. I consider those warnings problems with the compiler, not problems with SQLite. > How are others dealing with this problem at work? > The regression test suite for SQLite has like 98% coverage. High-coverage testing like this is a much, much better way to find problems that compiler warnings. My suggestion is that you turn all the compiler warnings off when compiling SQLite. -- D. Richard Hipp <[EMAIL PROTECTED]> - To unsubscribe, send email to [EMAIL PROTECTED] -
[sqlite] so many warnings on vc6 with warning level 4
Hello, i want to use sqlite3 in a sub-project at work. when compiling with warning level 4 with vc6 ( internal philosophy ) , i get over 480 warnings. With warning level 3 there are still 119 left. This leads to problems to convince the project lead of the quality of sqlite3 ( which i do not doubt, as i have used it for my private project since some years). Is there any chance this warnings will be fixed sometime in the future? How are others dealing with this problem at work? regards, gunnar - To unsubscribe, send email to [EMAIL PROTECTED] -