Use fputs instead of fprintf in mem_error_cb(). This silences the
authorChris Want <cwant@ualberta.ca>
Tue, 9 Jun 2009 18:08:45 +0000 (18:08 +0000)
committerChris Want <cwant@ualberta.ca>
Tue, 9 Jun 2009 18:08:45 +0000 (18:08 +0000)
gcc warning "format not a string literal and no format arguments".

source/creator/creator.c

index f8bf728814319905800c0ac8b70e89529747d211..5a90a1e5b9fa86371a16dbf1c412c902c2514922 100644 (file)
@@ -887,7 +887,7 @@ static void error_cb(char *err)
 
 static void mem_error_cb(char *errorStr)
 {
-       fprintf(stderr, errorStr);
+       fputs(errorStr, stderr);
        fflush(stderr);
 }