[issue27967] Remove unused variables causing compile warnings in sqlite3 module
Xiang Zhang
report at bugs.python.org
Tue Sep 6 02:24:10 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue27967>
_______________________________________
More information about the Python-bugs-list
mailing list