mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Merged revisions 74051-74052 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74051 | alexandre.vassalotti | 2009-07-17 03:54:23 -0400 (Fri, 17 Jul 2009) | 2 lines Initialize variables in PyCurses_getsyx() to avoid compiler warnings. ........ r74052 | alexandre.vassalotti | 2009-07-17 04:09:04 -0400 (Fri, 17 Jul 2009) | 3 lines Fix GCC warning about fprintf used without a string literal and without format arguments. ........
This commit is contained in:
parent
a8336b4fd0
commit
cf7128ccbc
2 changed files with 5 additions and 4 deletions
|
@ -1806,7 +1806,8 @@ PyCurses_EraseChar(PyObject *self)
|
||||||
static PyObject *
|
static PyObject *
|
||||||
PyCurses_getsyx(PyObject *self)
|
PyCurses_getsyx(PyObject *self)
|
||||||
{
|
{
|
||||||
int x,y;
|
int x = 0;
|
||||||
|
int y = 0;
|
||||||
|
|
||||||
PyCursesInitialised
|
PyCursesInitialised
|
||||||
|
|
||||||
|
|
|
@ -131,9 +131,9 @@ usage(int exitcode, wchar_t* program)
|
||||||
if (exitcode)
|
if (exitcode)
|
||||||
fprintf(f, "Try `python -h' for more information.\n");
|
fprintf(f, "Try `python -h' for more information.\n");
|
||||||
else {
|
else {
|
||||||
fprintf(f, usage_1);
|
fputs(usage_1, f);
|
||||||
fprintf(f, usage_2);
|
fputs(usage_2, f);
|
||||||
fprintf(f, usage_3);
|
fputs(usage_3, f);
|
||||||
fprintf(f, usage_4, DELIM);
|
fprintf(f, usage_4, DELIM);
|
||||||
fprintf(f, usage_5, DELIM, PYTHONHOMEHELP);
|
fprintf(f, usage_5, DELIM, PYTHONHOMEHELP);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue