mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Py_GetBuildInfo(): Squash compiler warnings.
Locals `revision` and `branch` were const-incorrect.
This commit is contained in:
parent
e86e7a5b62
commit
a9652f11ad
1 changed files with 3 additions and 3 deletions
|
@ -24,9 +24,9 @@ const char *
|
||||||
Py_GetBuildInfo(void)
|
Py_GetBuildInfo(void)
|
||||||
{
|
{
|
||||||
static char buildinfo[50];
|
static char buildinfo[50];
|
||||||
char *revision = Py_SubversionRevision();
|
const char *revision = Py_SubversionRevision();
|
||||||
char *sep = *revision ? ":" : "";
|
const char *sep = *revision ? ":" : "";
|
||||||
char *branch = Py_SubversionShortBranch();
|
const char *branch = Py_SubversionShortBranch();
|
||||||
PyOS_snprintf(buildinfo, sizeof(buildinfo),
|
PyOS_snprintf(buildinfo, sizeof(buildinfo),
|
||||||
"%s%s%s, %.20s, %.9s", branch, sep, revision,
|
"%s%s%s, %.20s, %.9s", branch, sep, revision,
|
||||||
DATE, TIME);
|
DATE, TIME);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue