[issue24464] Got warning when compiling sqlite3 module on Mac OSX

2015-06-21 Thread Ronald Oussoren

Ronald Oussoren added the comment:

https://www.sqlite.org/c3ref/enable_shared_cache.html appears to indicate 
that the function is deprecated on OSX 10.7 and iOS 5.0, but looking at the 
latest sources on sqlite.org that's not the case, the warning in the 
documentation appears to be for the version of SQLite that Apple ships with 
their systems.

Because of this I'm against merging this patch as is because it also affects 
anyone building using the upstream version of SQLite instead of the version 
shipped with OSX.

I'm -0 on suppressing the warning other ways, either by detecting that the 
build uses Apple's build of SQLite or by using pragma's to disable deprecation 
warnings for this functions.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24464
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24464] Got warning when compiling sqlite3 module on Mac OSX

2015-06-18 Thread Vajrasky Kok

New submission from Vajrasky Kok:

I got this warning when compiling sqlite3 module.

gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -Wstrict-prototypes 
-Werror=declaration-after-statement -DMODULE_NAME=sqlite3 
-DSQLITE_OMIT_LOAD_EXTENSION=1 -IModules/_sqlite -I/usr/include -I./Include -I. 
-IInclude -I/usr/local/include -I/Users/sky/Code/python/cpython/Include 
-I/Users/sky/Code/python/cpython -c 
/Users/sky/Code/python/cpython/Modules/_sqlite/module.c -o 
build/temp.macosx-10.10-x86_64-3.6-pydebug/Users/sky/Code/python/cpython/Modules/_sqlite/module.o
/Users/sky/Code/python/cpython/Modules/_sqlite/module.c:136:10: warning: 
'sqlite3_enable_shared_cache' is
  deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
rc = sqlite3_enable_shared_cache(do_enable);
 ^
/usr/include/sqlite3.h:5006:16: note: 'sqlite3_enable_shared_cache' has been 
explicitly marked deprecated here
SQLITE_API int sqlite3_enable_shared_cache(int) 
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_7, __I...
   ^
1 warning generated.

The enable_shared_cache method will fail if it is used afterwards.
Changing the shared_cache flag failed

Here is the patch to remove the warning.

--
components: Macintosh
files: remove_warning_compile__sqlite.patch
keywords: patch
messages: 245463
nosy: ned.deily, ronaldoussoren, vajrasky
priority: normal
severity: normal
status: open
title: Got warning when compiling sqlite3 module on Mac OSX
versions: Python 3.4, Python 3.5
Added file: 
http://bugs.python.org/file39726/remove_warning_compile__sqlite.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24464
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com