New submission from Xiang Zhang:

Compile py2.7 will generate two unused variable warnings in sqlite3 module. The 
variables have already not existed in py3.

/home/angwer/py2.7/Modules/_sqlite/cursor.c: In function 
‘pysqlite_cursor_dealloc’:
/home/angwer/py2.7/Modules/_sqlite/cursor.c:121:9: warning: variable ‘rc’ set 
but not used [-Wunused-but-set-variable]
     int rc;

/home/angwer/py2.7/Modules/_sqlite/statement.c: In function 
‘pysqlite_statement_dealloc’:
/home/angwer/py2.7/Modules/_sqlite/statement.c:414:9: warning: variable ‘rc’ 
set but not used [-Wunused-but-set-variable]
     int rc;

----------
components: Library (Lib)
files: py2.7_sqlite_unused.patch
keywords: patch
messages: 274528
nosy: xiang.zhang
priority: normal
severity: normal
status: open
title: Remove unused variables causing compile warnings in sqlite3 module
versions: Python 2.7
Added file: http://bugs.python.org/file44391/py2.7_sqlite_unused.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27967>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to