git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
4a3b0b2
)
trace: remove redundant printf format attribute
author
Karsten Blees
<redacted>
Wed, 11 Jun 2014 07:57:59 +0000
(09:57 +0200)
committer
Junio C Hamano
<redacted>
Tue, 17 Jun 2014 16:37:47 +0000
(09:37 -0700)
trace_printf_key() is the only non-static function that duplicates the
printf format attribute in the .c file, remove it for consistency.
Signed-off-by: Karsten Blees <redacted>
Signed-off-by: Junio C Hamano <redacted>
trace.c
patch
|
blob
|
history
diff --git
a/trace.c
b/trace.c
index 37a7fa9640d191bfe3892cfe3b8eb821aaf26a64..3e315587e084d7666ea4f9c7117dc4b3329d2188 100644
(file)
--- a/
trace.c
+++ b/
trace.c
@@
-75,7
+75,6
@@
static void trace_vprintf(const char *key, const char *format, va_list ap)
strbuf_release(&buf);
}
-__attribute__((format (printf, 2, 3)))
void trace_printf_key(const char *key, const char *format, ...)
{
va_list ap;
git clone https://git.99rst.org/PROJECT