[Python-checkins] [python/cpython] 8f5cdf: Only define get_zone() and get_gmtoff() if needed ...

GitHub noreply at github.com
Thu Apr 20 07:41:10 EDT 2017


 Branch: refs/heads/master
 Home: https://github.com/python/cpython
 Commit: 8f5cdfa9fc1bb6b4d9a33fc281987252f6398430
 https://github.com/python/cpython/commit/8f5cdfa9fc1bb6b4d9a33fc281987252f6398430
 Author: Victor Stinner <victor.stinner at gmail.com>
 Date: 2017年04月20日 (2017年4月20日)
 Changed paths:
 M Modules/timemodule.c
 Log Message:
 -----------
 Only define get_zone() and get_gmtoff() if needed (#1193)
Only define the get_zone() and get_gmtoff() private functions in the
time module if these functions are needed to initialize the module.
The change fixes the following warnings on AIX:
Modules/timemodule.c:1175:1: warning: 'get_gmtoff' defined but not used [-Wunused-function]
Modules/timemodule.c:1164:1: warning: 'get_zone' defined but not used [-Wunused-function]


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /