Merge branch 'bb/pedantic'
The codebase has been updated to compile cleanly with -pedantic option. * bb/pedantic: utf8.c: avoid char overflow string-list.c: avoid conversion from void * to function pointer sequencer.c: avoid empty statements at top level convert.c: replace "\e" escapes with "\033". fixup! refs/refs-internal.h: avoid forward declaration of an enum refs/refs-internal.h: avoid forward declaration of an enum fixup! connect.h: avoid forward declaration of an enum connect.h: avoid forward declaration of an enum
This commit is contained in:
@ -335,7 +335,7 @@ static void trace_encoding(const char *context, const char *path,
|
||||
strbuf_addf(&trace, "%s (%s, considered %s):\n", context, path, encoding);
|
||||
for (i = 0; i < len && buf; ++i) {
|
||||
strbuf_addf(
|
||||
&trace,"| \e[2m%2i:\e[0m %2x \e[2m%c\e[0m%c",
|
||||
&trace, "| \033[2m%2i:\033[0m %2x \033[2m%c\033[0m%c",
|
||||
i,
|
||||
(unsigned char) buf[i],
|
||||
(buf[i] > 32 && buf[i] < 127 ? buf[i] : ' '),
|
||||
|
Reference in New Issue
Block a user