]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix GCC warning about fprintf used without a string literal and
authorAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 17 Jul 2009 08:09:04 +0000 (08:09 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 17 Jul 2009 08:09:04 +0000 (08:09 +0000)
without format arguments.

Modules/main.c

index d6df92f6843f3746fb85c895e644b8662cbc12aa..014ea5f9a0b1b5f4f22858c60ab1dbec84e2d45c 100644 (file)
@@ -112,9 +112,9 @@ usage(int exitcode, char* program)
        if (exitcode)
                fprintf(f, "Try `python -h' for more information.\n");
        else {
-               fprintf(f, usage_1);
-               fprintf(f, usage_2);
-               fprintf(f, usage_3);
+               fputs(usage_1, f);
+               fputs(usage_2, f);
+               fputs(usage_3, f);
                fprintf(f, usage_4, DELIM);
                fprintf(f, usage_5, DELIM, PYTHONHOMEHELP);
        }