summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8bb4646)
raw | patch | inline | side by side (parent: 8bb4646)
author | Daniel Lowe <dlowe@bitmuse.com> | |
Mon, 10 Nov 2008 21:07:52 +0000 (16:07 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 11 Nov 2008 22:50:02 +0000 (14:50 -0800) |
These were found using gcc 4.3.2-1ubuntu11 with the warning:
warning: format not a string literal and no format arguments
Signed-off-by: Junio C Hamano <gitster@pobox.com>
warning: format not a string literal and no format arguments
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-check-attr.c | patch | blob | history | |
hash-object.c | patch | blob | history |
diff --git a/builtin-check-attr.c b/builtin-check-attr.c
index 4921341e33033bb4a2449425d6fd76132a67cd16..15a04b7179a09492764d43c16a3ec5ff7cdd1b61 100644 (file)
--- a/builtin-check-attr.c
+++ b/builtin-check-attr.c
else if (stdin_paths && doubledash < argc)
errstr = "Can't specify files with --stdin";
if (errstr) {
- error (errstr);
+ error("%s", errstr);
usage_with_options(check_attr_usage, check_attr_options);
}
diff --git a/hash-object.c b/hash-object.c
index 20937ff94c1ce6ab7984d7b6b1903307e303eb60..846e91a23126b747fbea8d9a8511f708c3d70e43 100644 (file)
--- a/hash-object.c
+++ b/hash-object.c
}
if (errstr) {
- error (errstr);
+ error("%s", errstr);
usage_with_options(hash_object_usage, hash_object_options);
}