mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Add the const qualifier to "char *" variables that refer to literal strings. (#4370)
This commit is contained in:
parent
e184cfd7bf
commit
e2f92de6a9
23 changed files with 46 additions and 41 deletions
|
|
@ -1608,7 +1608,7 @@ _PyGC_DumpShutdownStats(void)
|
|||
{
|
||||
if (!(_PyRuntime.gc.debug & DEBUG_SAVEALL)
|
||||
&& _PyRuntime.gc.garbage != NULL && PyList_GET_SIZE(_PyRuntime.gc.garbage) > 0) {
|
||||
char *message;
|
||||
const char *message;
|
||||
if (_PyRuntime.gc.debug & DEBUG_UNCOLLECTABLE)
|
||||
message = "gc: %zd uncollectable objects at " \
|
||||
"shutdown";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue