cpython/Modules/expat
Pablo Galindo be93f81e58
Fix compiler warning in the xml module (GH-26245)
The newest version of gcc complains about passing un-initialized arrays
as constant pointers:

```
/Modules/expat/xmltok_ns.c: In function ‘findEncodingNS’:
/Modules/expat/xmltok.h:272:10: warning: ‘buf’ may be used uninitialized [-Wmaybe-uninitialized]
  272 |   (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’
   95 |   XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
      |   ^~~~~~~~~~~~~~
/Modules/expat/xmltok.h:272:10: note: by argument 5 of type ‘const char *’ to ‘enum XML_Convert_Result(const ENCODING *, const char **, const char *, char **, const char *)’ {aka ‘enum XML_Convert_Result(const struct encoding *, const char **, const char *, char **, const char *)’}
  272 |   (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim))
      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’
   95 |   XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1);
      |   ^~~~~~~~~~~~~~
In file included from /Modules/expat/xmltok.c:1657:
/Modules/expat/xmltok_ns.c:92:8: note: ‘buf’ declared here
   92 |   char buf[ENCODING_MAX];

```
2021-05-19 19:05:40 +01:00
..
COPYING bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) 2017-06-21 14:39:22 +02:00
ascii.h bpo-31170: Update libexpat from 2.2.3 to 2.2.4 (#3315) 2017-09-05 01:58:08 +02:00
asciitab.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
expat.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
expat_config.h remove configure check for memmove (#3716) 2017-09-24 12:08:40 -07:00
expat_external.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
iasciitab.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
internal.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
latin1tab.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
nametab.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
pyexpatns.h bpo-31462: Remove trailing whitespaces. (#3564) 2017-09-14 09:38:36 +03:00
siphash.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
utf8tab.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
winconfig.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
xmlparse.c closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
xmlrole.c closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
xmlrole.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
xmltok.c bpo-37731: Reorder includes in xmltok.c to avoid redefinition of _POSIX_C_SOURCE (GH-16733) 2019-10-12 20:14:11 +01:00
xmltok.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
xmltok_impl.c closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
xmltok_impl.h closes bpo-38174: Update vendored expat library to 2.2.8. (GH-16346) 2019-09-25 21:33:58 -07:00
xmltok_ns.c Fix compiler warning in the xml module (GH-26245) 2021-05-19 19:05:40 +01:00