[New-bugs-announce] [issue47230] New compiler warnings with latest zlib
Jeremy Kloth
report at bugs.python.org
Tue Apr 5 13:45:26 EDT 2022
New submission from Jeremy Kloth <jeremy.kloth+python-tracker at gmail.com>:
The latest zlib (1.2.12) introduces 3 new compiler warnings. Now being an external library, I do not think we generally patch them, so I propose to simply silence the warnings for the offending file.
For reference, the problem comes from:
--- deflate.h.old 2022-04-05 11:27:26.869042900 -0600
+++ deflate.h.new 2022-04-05 11:26:11.512039600 -0600
@@ -329,8 +329,8 @@
# define _tr_tally_dist(s, distance, length, flush) \
{ uch len = (uch)(length); \
ush dist = (ush)(distance); \
- s->sym_buf[s->sym_next++] = dist; \
- s->sym_buf[s->sym_next++] = dist >> 8; \
+ s->sym_buf[s->sym_next++] = (uch)dist; \
+ s->sym_buf[s->sym_next++] = (uch)(dist >> 8); \
s->sym_buf[s->sym_next++] = len; \
dist--; \
s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \
----------
components: Build, Windows
messages: 416792
nosy: jkloth, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: New compiler warnings with latest zlib
type: compile error
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47230>
_______________________________________
More information about the New-bugs-announce
mailing list