Andy Lester
e6be9b59a9
closes bpo-39605: Fix some casts to not cast away const. (GH-18453)
...
gcc -Wcast-qual turns up a number of instances of casting away constness of pointers. Some of these can be safely modified, by either:
Adding the const to the type cast, as in:
- return _PyUnicode_FromUCS1((unsigned char*)s, size);
+ return _PyUnicode_FromUCS1((const unsigned char*)s, size);
or, Removing the cast entirely, because it's not necessary (but probably was at one time), as in:
- PyDTrace_FUNCTION_ENTRY((char *)filename, (char *)funcname, lineno);
+ PyDTrace_FUNCTION_ENTRY(filename, funcname, lineno);
These changes will not change code, but they will make it much easier to check for errors in consts
2020-02-11 18:28:35 -08:00
..
2020-02-07 09:17:07 +01:00
2020-02-11 17:46:57 +01:00
2020-02-07 23:18:08 +01:00
2020-02-11 18:28:35 -08:00
2020-02-01 01:25:59 +01:00
2020-02-07 09:17:07 +01:00
2020-02-11 17:46:57 +01:00
2019-06-03 20:40:15 +02:00
2020-02-11 17:46:57 +01:00
2020-02-11 17:46:57 +01:00
2020-01-24 14:05:48 +01:00
2019-10-12 20:14:11 +01:00
2019-07-11 17:59:05 +09:00
2020-02-11 17:46:57 +01:00
2018-11-27 13:27:31 +02:00
2019-05-30 19:13:39 -07:00
2020-02-11 03:16:38 -08:00
2020-02-11 17:46:57 +01:00
2019-11-16 15:57:32 -08:00
2019-10-07 21:22:17 -07:00
2020-02-11 17:46:57 +01:00
2019-03-27 12:52:18 +01:00
2020-02-07 03:37:06 +01:00
2020-02-07 03:37:06 +01:00
2020-02-07 03:37:06 +01:00
2020-02-11 17:46:57 +01:00
2020-02-11 17:46:57 +01:00
2020-02-07 03:37:06 +01:00
2019-11-04 15:55:56 +01:00
2020-01-23 14:07:05 +00:00
2020-02-11 17:46:57 +01:00
2019-03-13 22:59:55 +02:00
2019-05-30 19:13:39 -07:00
2019-09-12 15:20:37 +01:00
2018-09-18 09:54:26 +03:00
2020-02-11 17:46:57 +01:00
2020-02-11 17:46:57 +01:00
2020-02-11 17:46:57 +01:00
2019-05-30 19:13:39 -07:00
2020-02-11 17:46:57 +01:00
2018-09-11 16:14:00 -07:00
2020-02-11 17:46:57 +01:00
2020-01-09 10:12:12 +01:00
2019-08-21 15:27:33 -07:00
2019-11-18 23:16:23 -08:00
2020-02-11 17:46:57 +01:00
2020-02-07 09:17:07 +01:00
2020-02-11 17:46:57 +01:00
2019-05-27 16:39:22 +02:00
2019-05-29 22:12:38 +02:00
2019-11-20 17:34:39 +01:00
2020-02-07 03:37:06 +01:00
2020-02-05 01:11:10 +01:00
2019-06-24 13:59:50 -04:00
2019-05-30 19:13:39 -07:00
2020-02-07 03:37:06 +01:00
2020-02-07 23:18:08 +01:00
2018-11-27 13:27:31 +02:00
2019-10-22 06:07:03 -07:00
2020-01-30 09:56:40 +01:00
2019-11-20 02:51:30 +01:00
2020-01-30 13:09:11 +01:00
2019-11-19 11:16:29 -08:00
2020-02-11 17:46:57 +01:00
2019-10-10 15:42:30 +02:00
2020-02-07 03:37:06 +01:00
2019-05-06 12:56:50 -04:00
2020-02-11 17:46:57 +01:00
2019-10-02 23:51:20 +02:00
2018-11-26 20:21:31 -06:00
2020-01-21 11:14:10 +01:00
2020-02-07 09:17:07 +01:00
2019-10-21 09:31:46 +03:00
2018-11-30 09:40:16 +02:00
2019-08-20 12:20:47 -07:00
2019-09-09 02:20:38 -07:00
2020-02-07 03:37:06 +01:00
2020-02-05 11:15:00 +11:00
2019-09-10 05:59:43 -07:00
2020-02-11 17:46:57 +01:00
2019-12-04 17:02:57 +01:00
2018-09-13 21:57:31 -07:00
2020-01-07 15:00:02 +01:00
2019-08-23 15:20:30 -07:00
2020-02-07 09:17:07 +01:00
2020-02-07 09:17:07 +01:00
2020-02-07 09:17:07 +01:00
2019-11-19 20:39:14 -08:00
2020-02-07 09:17:07 +01:00
2019-10-13 02:03:54 +01:00
2019-02-18 15:26:37 +02:00
2019-06-13 02:16:41 +02:00
2020-01-14 09:57:04 -08:00
2020-01-04 13:56:31 +01:00
2019-08-27 00:13:12 -04:00
2019-05-08 20:59:35 -07:00
2020-02-07 09:17:07 +01:00
2019-05-08 20:59:35 -07:00
2019-04-09 11:19:46 -07:00
2019-05-29 22:12:38 +02:00
2019-05-30 19:13:39 -07:00
2019-05-30 19:13:39 -07:00
2019-09-10 03:27:03 -07:00