]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #22463: Backport compiler warning fixes and workarounds
authorMartin Panter <vadmium+py@gmail.com>
Tue, 21 Jun 2016 23:58:05 +0000 (23:58 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Tue, 21 Jun 2016 23:58:05 +0000 (23:58 +0000)
commit646b528467b171148143980452d2aa4294cbe5c8
tree543a51b71ca637973beeebb3d450d83727496315
parent4e6e56536840a7080316bf036b4df799a6601049
Issue #22463: Backport compiler warning fixes and workarounds

* Set but unused variable in Parser/pgen.c in non-debug builds. Patch by
  Christian Heimes.
* Unused static function in Modules/readline.c. Patch by Georg Brandl.
* main_window unused in Modules/tkappinit.c. Patch by Gregory P. Smith.
* Dead assignment in Modules/_ctypes/cfield.c. Extracted from patch by Brett
  Cannon.
* Expression result unused in PyObject_INIT macro expansions. Based on
  patches by Christian Heimes.
* Load expat_config.h and therefore pyconfig.h before C stdlib headers are
  loaded. This silences pre-processor warnings including '_POSIX_C_SOURCE
  redefined'. Extracted from patch by Christian Heimes.
14 files changed:
Modules/_ctypes/cfield.c
Modules/datetimemodule.c
Modules/expat/xmlparse.c
Modules/readline.c
Modules/tkappinit.c
Objects/classobject.c
Objects/complexobject.c
Objects/floatobject.c
Objects/intobject.c
Objects/methodobject.c
Objects/stringobject.c
Objects/typeobject.c
Objects/unicodeobject.c
Parser/pgen.c