Miss Islington (bot)
e87fd41d02
Fix compiler warning in the xml module (GH-26245) (GH-26249)
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];
```
(cherry picked from commit be93f81e58ba3742589259ef84325a95b547e424)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2021-05-19 19:21:19 +01:00
..
2021-05-02 09:47:45 +02:00
2021-05-02 12:40:01 +02:00
2021-04-22 08:34:57 -07:00
2021-04-23 23:00:27 +01:00
2020-12-01 10:37:39 +01:00
2021-05-05 15:05:22 -07:00
2021-05-02 23:10:51 +01:00
2021-05-02 09:47:45 +02:00
2021-03-25 00:47:21 +09:00
2021-04-30 16:04:57 +02:00
2021-04-26 15:01:40 +02:00
2021-05-19 19:21:19 +01:00
2021-05-03 00:38:22 +01:00
2021-04-25 13:40:44 +03:00
2021-04-30 16:32:49 -07:00
2021-04-30 09:50:28 +01:00
2021-05-12 19:56:19 +01:00
2021-04-30 12:46:15 +02:00
2021-05-03 15:50:24 +01:00
2021-01-06 20:47:19 +01:00
2021-04-30 16:04:57 +02:00
2021-04-30 16:04:57 +02:00
2021-04-30 16:04:57 +02:00
2021-05-17 01:03:57 -07:00
2021-02-01 17:26:56 +01:00
2020-12-01 09:56:42 +01:00
2021-04-30 16:32:49 -07:00
2021-04-22 00:52:52 +02:00
2021-04-22 00:52:52 +02:00
2021-04-28 19:09:29 +02:00
2021-04-22 00:52:52 +02:00
2021-05-04 21:39:09 -07:00
2021-04-30 16:04:57 +02:00
2021-04-09 08:02:00 -07:00
2021-04-09 08:02:00 -07:00
2021-05-02 09:47:45 +02:00
2021-04-26 15:01:40 +02:00
2021-04-22 00:52:52 +02:00
2020-12-01 10:37:39 +01:00
2021-05-06 20:18:42 -07:00
2021-05-03 16:47:27 +01:00
2021-04-30 16:04:57 +02:00
2021-04-30 12:46:15 +02:00
2021-04-30 16:04:57 +02:00
2021-04-30 12:46:15 +02:00
2021-03-03 21:53:59 -08:00
2021-04-30 16:04:57 +02:00
2021-02-19 15:10:45 +01:00
2021-02-19 13:21:28 +01:00
2021-04-28 18:12:16 +02:00
2020-11-18 23:47:32 -08:00
2020-12-04 19:45:57 -08:00
2021-01-25 14:51:48 -08:00
2020-11-16 16:16:10 +01:00
2021-03-03 14:59:52 +01:00
2021-05-02 09:47:45 +02:00
2021-04-23 23:00:27 +01:00
2020-12-01 10:37:39 +01:00
2020-12-01 10:37:39 +01:00
2021-04-30 14:06:49 +02:00
2020-12-29 14:58:27 +02:00
2020-11-18 23:47:32 -08:00
2021-04-30 16:04:57 +02:00
2021-02-16 00:28:24 +01:00
2021-02-18 16:26:20 +01:00
2021-04-30 18:19:57 +02:00
2021-04-22 00:52:52 +02:00
2021-05-02 09:47:45 +02:00
2021-05-02 09:47:45 +02:00
2021-05-02 09:47:45 +02:00
2021-04-28 03:02:55 +02:00
2021-04-22 00:18:20 +01:00
2021-01-06 20:43:06 +01:00
2020-11-19 10:54:03 +01:00
2020-12-01 10:37:39 +01:00
2021-05-03 10:43:00 +03:00
2020-11-16 16:08:05 +01:00
2021-04-30 16:04:57 +02:00
2021-04-02 16:48:11 +02:00
2021-04-02 16:48:11 +02:00
2020-12-01 10:37:39 +01:00
2021-04-30 16:32:49 -07:00