Skip to content

Commit e4fee13

Browse files
committed
Add missing printf function attribute
Reported by clang: ../src/share/log.c:812:35: error: format string is not a string literal [-Werror,-Wformat-nonliteral] 812 | r = vasprintf(&m, format, aq); | ^~~~~~
1 parent a7c6b83 commit e4fee13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/share/log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ int log_format_iovec(
124124
bool newline_separator,
125125
int error,
126126
const char *format,
127-
va_list ap);
127+
va_list ap) _printf_(6,0);
128128

129129
/* This modifies the buffer passed! */
130130
int log_dump_internal(

0 commit comments

Comments
 (0)