Issue 27967: Remove unused variables causing compile warnings in sqlite3 module (original) (raw)
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;