Victor Stinner
8d32ae75d4
[3.15] gh-149707: Fix compiler warning in _ctypes_test on strchr() ( #149791 ) ( #149865 )
...
gh-149707: Fix compiler warning in _ctypes_test on strchr() (#149791 )
Change my_strchr() return type to "const char*" (add "const").
Fix the compiler warning:
Modules/_ctypes/_ctypes_test.c: In function 'my_strchr':
Modules/_ctypes/_ctypes_test.c:451:12: warning: return discards
'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
451 | return strchr(s, c);
| ^~~~~~
When using C23, strchr(text, ch) return type is "const char*" if text
type is "const char*".
(cherry picked from commit 5465b69255 )
2026-05-15 11:36:21 +00:00
..
2026-05-15 11:36:21 +00:00
2026-04-02 23:20:13 +02:00
2025-10-16 05:25:51 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-05-09 00:28:21 +00:00
2026-03-29 14:21:37 +02:00
2026-04-02 23:20:13 +02:00
2026-03-25 07:44:47 +01:00
2026-05-13 10:39:38 +00:00
2026-05-12 17:58:31 +00:00
2026-05-05 09:18:04 +02:00
2026-04-09 08:52:30 +01:00
2026-04-21 12:49:44 -07:00
2026-04-02 23:24:03 +02:00
2026-05-12 20:25:28 +00:00
2026-05-14 09:52:51 +01:00
2026-03-24 17:47:55 +00:00
2026-04-09 18:50:50 +05:30
2026-03-24 17:47:55 +00:00
2026-04-12 18:14:54 -07:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-04-11 15:18:02 -07:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-04-02 23:24:03 +02:00
2026-03-24 17:47:55 +00:00
2026-04-23 15:48:00 +01:00
2026-05-10 23:32:35 +00:00
2026-03-24 17:47:55 +00:00
2026-04-12 00:02:56 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2025-05-22 06:50:06 -06:00
2026-04-02 23:24:03 +02:00
2026-04-12 00:14:50 +00:00
2026-03-24 17:47:55 +00:00
2026-04-07 22:56:19 +02:00
2026-04-12 18:14:54 -07:00
2024-08-17 13:48:16 +05:30
2026-03-24 17:47:55 +00:00
2026-04-02 23:20:13 +02:00
2026-04-02 23:20:13 +02:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2024-05-03 11:30:55 -04:00
2026-05-03 20:20:51 +00:00
2026-04-15 15:59:02 +02:00
2025-04-25 10:26:58 +02:00
2024-11-28 13:29:27 +01:00
2025-04-25 10:26:58 +02:00
2026-05-04 13:52:57 +02:00
2023-05-22 06:14:48 +05:30
2025-06-27 15:15:11 +00:00
2024-05-03 11:30:55 -04:00
2026-05-04 16:14:23 +02:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-03-26 15:26:34 +01:00
2024-01-29 16:45:31 +01:00
2026-05-06 17:39:30 -04:00
2024-05-06 18:59:36 +02:00
2026-03-17 12:16:35 +02:00
2024-05-03 11:30:55 -04:00
2026-05-07 10:37:00 +02:00
2026-05-05 09:18:04 +02:00
2026-05-05 09:18:04 +02:00
2026-04-08 09:15:11 +02:00
2026-04-02 23:20:13 +02:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2025-05-26 10:56:31 +02:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-04-04 13:29:17 +01:00
2025-03-18 11:26:51 +01:00
2026-05-06 16:28:11 +02:00
2026-03-24 17:47:55 +00:00
2026-05-12 20:25:28 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2025-04-09 16:18:54 -07:00
2024-12-03 12:45:50 +00:00
2026-05-06 15:01:12 +00:00
2026-03-24 17:47:55 +00:00
2025-08-07 16:32:17 -07:00
2026-04-30 12:19:13 -07:00
2025-03-18 14:31:13 +01:00
2025-03-03 14:59:46 +01:00
2025-03-11 13:06:36 +01:00
2021-12-03 00:08:42 +00:00
2025-04-22 14:06:30 +01:00
2026-03-09 19:37:33 +00:00
2026-03-24 17:47:55 +00:00
2025-08-01 10:45:40 -07:00
2026-03-24 17:47:55 +00:00
2026-04-02 23:20:13 +02:00
2016-11-20 07:56:37 +00:00
2026-04-02 23:20:13 +02:00
2025-09-18 09:25:01 +00:00
2020-11-16 16:16:10 +01:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-04-21 07:29:07 -07:00
2026-05-02 13:42:03 +00:00
2024-03-12 00:46:53 +00:00
2026-03-24 17:47:55 +00:00
2026-05-10 14:11:57 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2024-07-03 13:05:05 +05:30
2017-11-28 17:56:10 +02:00
2026-04-02 23:24:03 +02:00
2026-05-14 00:00:29 +02:00
2025-07-21 13:47:26 -04:00
2026-05-14 00:00:29 +02:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-04-02 23:24:03 +02:00
2026-04-27 13:12:34 +00:00
2025-09-17 17:18:04 +00:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-03-19 16:20:18 +05:30
2026-03-24 17:47:55 +00:00
2023-05-10 18:53:13 +00:00
2023-04-14 09:04:16 -05:00
2026-02-21 18:27:55 +01:00
2026-03-24 17:47:55 +00:00
2026-02-18 12:58:21 +02:00
2019-04-09 11:19:46 -07:00
2026-05-14 00:00:29 +02:00
2026-05-14 00:00:29 +02:00
2026-05-14 00:00:29 +02:00
2026-03-24 17:47:55 +00:00
2026-03-24 17:47:55 +00:00
2026-04-12 18:14:54 -07:00