From fced2c9a87c55870cdea9379e7f550378bad7e9b Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 30 Jan 2025 08:41:25 -0800
Subject: [PATCH] Fixed compile warnings when HarfBuzz is disabled
---
src/SDL_ttf.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index 2553a607..d7684b93 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -3295,6 +3295,8 @@ static bool CollectGlyphsFromFont(TTF_Font *font, const char *text, size_t lengt
hb_buffer_destroy(hb_buffer);
#else
+ (void)direction;
+ (void)script;
bool skip_first = true;
FT_UInt prev_index = 0;
FT_Pos prev_delta = 0;
@@ -5933,6 +5935,8 @@ Uint32 TTF_GetGlyphScript(Uint32 ch)
}
hb_buffer_destroy(hb_buffer);
+#else
+ (void)ch;
#endif
if (script == 0) {