[issue39605] Fix some casts to not cast away const

2020-02-11 Thread miss-islington
miss-islington added the comment: New changeset 0b8f738eb3ee0110461e7da28c0b6b452f91999d by Miss Islington (bot) in branch '3.8': bpo-39605: Remove a cast that causes a warning. (GH-18473) https://github.com/python/cpython/commit/0b8f738eb3ee0110461e7da28c0b6b452f91999d --

[issue39605] Fix some casts to not cast away const

2020-02-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +17842 pull_request: https://github.com/python/cpython/pull/18474 ___ Python tracker ___ __

[issue39605] Fix some casts to not cast away const

2020-02-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 95905ce0f41fd42eb1ef60ddb83f057401c3d52f by Benjamin Peterson in branch 'master': bpo-39605: Remove a cast that causes a warning. (GH-18473) https://github.com/python/cpython/commit/95905ce0f41fd42eb1ef60ddb83f057401c3d52f -- _

[issue39605] Fix some casts to not cast away const

2020-02-11 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +17841 pull_request: https://github.com/python/cpython/pull/18473 ___ Python tracker ___ ___

[issue39605] Fix some casts to not cast away const

2020-02-11 Thread miss-islington
miss-islington added the comment: New changeset 190433d8150bf719fa0ba972dbacf2214942f54e by Miss Islington (bot) in branch '3.8': closes bpo-39605: Fix some casts to not cast away const. (GH-18453) https://github.com/python/cpython/commit/190433d8150bf719fa0ba972dbacf2214942f54e --

[issue39605] Fix some casts to not cast away const

2020-02-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +17839 pull_request: https://github.com/python/cpython/pull/18471 ___ Python tracker ___ __

[issue39605] Fix some casts to not cast away const

2020-02-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset e6be9b59a911626d6597fe148c32f0342bd2bd24 by Andy Lester in branch 'master': closes bpo-39605: Fix some casts to not cast away const. (GH-18453) https://github.com/python/cpython/commit/e6be9b59a911626d6597fe148c32f0342bd2bd24 -- nos

[issue39605] Fix some casts to not cast away const

2020-02-10 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +17827 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18453 ___ Python tracker ___

[issue39605] Fix some casts to not cast away const

2020-02-10 Thread Andy Lester
New submission from Andy Lester : 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 _PyUnicod