From 58a4b4218ec119c3bdecc01c6e007ce1959f2103 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 10 Jan 2023 17:35:15 +0530 Subject: [PATCH] ... --- kitty/child-monitor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index f5c911fee..45c2d9c7b 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -1388,7 +1388,8 @@ reap_children(ChildMonitor *self, bool enable_close_on_child_death) { } } -static inline void +#ifdef KITTY_PRINT_BYTES_SENT_TO_CHILD +static void print_text(const unsigned char *text, ssize_t sz) { for (ssize_t i = 0; i < sz; i++) { unsigned char ch = text[i]; @@ -1398,6 +1399,7 @@ print_text(const unsigned char *text, ssize_t sz) { } else fprintf(stderr, "\\x%02x", ch); } } +#endif static void