diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-25 19:53:18 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-25 19:53:18 +0200 |
commit | d1ba93f9a6a441ac31c5fd1890ce730b9e6d330d (patch) | |
tree | 8b977eca9b539fb4d1064d92cc2a405fab36e75d /Python/sysmodule.c | |
parent | 5f0e32baa674d4563910e0b58f1563ab0b2aa52a (diff) | |
download | cpython-d1ba93f9a6a441ac31c5fd1890ce730b9e6d330d.tar.gz |
Issue #25923: Added the const qualifier to static constant arrays.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index e0aa233ca9..f784f756d5 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -346,8 +346,10 @@ static PyObject *whatstrings[7] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; static int trace_init(void) { - static char *whatnames[7] = {"call", "exception", "line", "return", - "c_call", "c_exception", "c_return"}; + static const char * const whatnames[7] = { + "call", "exception", "line", "return", + "c_call", "c_exception", "c_return" + }; PyObject *name; int i; for (i = 0; i < 7; ++i) { |