[issue5134] Compiler warnings in sqlite module

2009-02-10 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Fixed in r69489, r69490, r69491, r69492, r69493. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5134

[issue5134] Compiler warnings in sqlite module

2009-02-09 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: What specific file would you put these pragmas into? Are you perhaps proposing to change upstream code? I would put it into the only sourcefile there is, and yes, I would change upstream code. Obviously, it would be better to get

[issue5134] Compiler warnings in sqlite module

2009-02-07 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Here is a patch that works similar to sqlite3_warnings, but moves all sqlite3.dll settings into a separate property file. Added file: http://bugs.python.org/file12968/sqlite.patch ___ Python tracker

[issue5134] Compiler warnings in sqlite module

2009-02-06 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: Technically, both changes (or neither of them) generate the same output binaries, so I Don't Care(tm). My approach for disabling the warnings in the code has (to me) two advantages: 1. You immediately see that warnings are disabled. I

[issue5134] Compiler warnings in sqlite module

2009-02-06 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: My approach for disabling the warnings in the code has (to me) two advantages: What specific file would you put these pragmas into? Are you perhaps proposing to change upstream code? ___ Python tracker

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Gerhard Häring
Gerhard Häring g...@ghaering.de added the comment: This is a known issue with SQLite. It's not as bad as it looks at first sight, though. http://www.sqlite.org/faq.html#q17 (17) I get hundreds of compiler warnings when I compile SQLite. Isn't this a problem? Doesn't it indicate poor code

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Martin, if you can find a way to silence the compiler for the upstream code that would be great. If not, go ahead and close as won't fix. -- assignee: ghaering - loewis ___ Python

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Gerhard Häring
Gerhard Häring g...@ghaering.de added the comment: I propose to either close this as wontfix. I don't know the switches for the Microsoft compiler to disable the warnings myself. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5134

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The attached patch sets the /W1 flag for the sqlite3 project. -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file12928/sqlite3_warnings.patch ___ Python

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: The syntax would be this: #if defined(_MSC_VER) # pragma warning(push) /* Disable warnings for this file, see http://www.sqlite.org/faq.html#q17 why we don't care for them. */ # pragma warning(disable: 4244) # pragma

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The syntax would be this: #if defined(_MSC_VER) # pragma warning(push) /* Disable warnings for this file, see http://www.sqlite.org/faq.html#q17 why we don't care for them. */ # pragma warning(disable: 4244) # pragma

[issue5134] Compiler warnings in sqlite module

2009-02-02 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: From a compilation of Py3.1 r69209 : ..\..\..\sqlite-3.5.9\sqlite3.c(9702) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data ..\..\..\sqlite-3.5.9\sqlite3.c(9703) : warning C4244: '=' :

[issue5134] Compiler warnings in sqlite module

2009-02-02 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I don't think we should do anything about these, except perhaps for disabling all warnings when compiling the file. These are upstream sources, so we definitely should not fix them. -- nosy: +loewis