ident.c: replace fprintf with fputs to suppress compiler warning
Compiling today's pu gave ... CC ident.o CC levenshtein.o ident.c: In function 'fmt_ident': ident.c:206: warning: format not a string literal and no format arguments CC list-objects.o ... This warning seems to have appeared first in 18e95f279ec6 (ident.c: remove unused variables) which removed additional fprintf arguments. Suppress this warning by using fputs instead of fprintf. Signed-off-by: Tarmigan Casebolt <tarmigan+git@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tarmigan Casebolt committed
Jan 17, 2010 at 00:19 UTC
8b770a2a24456089c0dd0230035a7d88aee7e26a
1 file changed
+1
-1
ident.c
+1
-1
@@ -203,7 +203,7 @@ const char *fmt_ident(const char *name, const char *email,
203
204
if ((warn_on_no_name || error_on_no_name) &&
205
name == git_default_name && env_hint) {
206
- fprintf(stderr, env_hint);
206
+ fputs(env_hint, stderr);
207
env_hint = NULL; /* warn only once */
208
}
209
if (error_on_no_name)