summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-09-09 12:07:17 +0200
committerGitHub <noreply@github.com>2020-09-09 12:07:17 +0200
commit640e8e1d5f61d5868453d992da04bf4741327748 (patch)
tree6b76288000a3dc9c45c649084e2949d7d1583cb2 /Python/Python-ast.c
parent1e2f051a6127904cfee5f9e4021dd6e4a4d51c0f (diff)
downloadcpython-git-640e8e1d5f61d5868453d992da04bf4741327748.tar.gz
Fix compiler warnings in init_dump_ascii_wstr() (GH-22150)
Fix GCC 9.3 (using -O3) warnings on x86: initconfig.c: In function ‘init_dump_ascii_wstr’: initconfig.c:2679:34: warning: format ‘%lc’ expects argument of type ‘wint_t’, but argument 2 has type ‘wchar_t’ {aka ‘long int’} 2679 | PySys_WriteStderr("%lc", ch); initconfig.c:2682:38: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’} 2682 | PySys_WriteStderr("\\x%02x", ch); initconfig.c:2686:38: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’} 2686 | PySys_WriteStderr("\\U%08x", ch); initconfig.c:2690:38: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘wchar_t’ {aka ‘long int’} 2690 | PySys_WriteStderr("\\u%04x", ch);
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions