Skip to content

Commit

Permalink
Merge pull request distcc#389 from orgads/const-warning
Browse files Browse the repository at this point in the history
Fix GCC warning
  • Loading branch information
shawnl authored Nov 18, 2020
2 parents 621d9af + 341906c commit f2766ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ XArgv(PyObject *dummy, PyObject *args) {
PyObject *string_object;
string_object = PyList_GetItem(list_object, i); /* borrowed ref */
/* TODO do it properly, catch exceptions for fancy Unicode symbols */
argv[i] = PyUnicode_AsUTF8(string_object); /* does not increase
argv[i] = (char*)PyUnicode_AsUTF8(string_object); /* does not increase
ref count */
}
ret = dcc_x_argv(ifd, "ARGC", "ARGV", argv);
Expand Down

0 comments on commit f2766ff

Please sign in to comment.