From 4c5ec4a018e9fb03578f5df0c9bc1622321aafc0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 15 Jul 2024 22:05:48 +0530 Subject: [PATCH] Silence spurious warning from Clang ASAN --- kitty/fonts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/fonts.c b/kitty/fonts.c index 59f0e9b9a..228d7e17b 100644 --- a/kitty/fonts.c +++ b/kitty/fonts.c @@ -460,7 +460,7 @@ calc_cell_metrics(FontGroup *fg) { } static bool -face_has_codepoint(const PyObject* face, char_type cp) { +face_has_codepoint(const void* face, char_type cp) { return glyph_id_for_codepoint(face, cp) > 0; }