Skip to content

Commit

Permalink
silence -Wunused-parameter warnings when building w/o harfbuzz support.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Sep 28, 2024
1 parent 8e7f1ae commit 0d1e0a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SDL_ttf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2820,6 +2820,7 @@ bool TTF_SetFontDirection(TTF_Font *font, TTF_Direction direction)
font->hb_direction = dir;
return true;
#else
(void) direction;
return SDL_SetError("Unsupported");
#endif
}
Expand All @@ -2845,6 +2846,7 @@ bool TTF_SetFontScript(TTF_Font *font, const char *script)
font->hb_script = scr;
return true;
#else
(void) script;
return SDL_SetError("Unsupported");
#endif
}
Expand Down Expand Up @@ -2885,6 +2887,9 @@ bool TTF_GetGlyphScript(Uint32 ch, char *script, size_t script_size)
return true;

#else
(void) script;
(void) script_size;
(void) ch;
return SDL_SetError("Unsupported");
#endif
}
Expand All @@ -2901,6 +2906,7 @@ bool TTF_SetFontLanguage(TTF_Font *font, const char *language_bcp47)
}
return true;
#else
(void) language_bcp47;
return SDL_SetError("Unsupported");
#endif
}
Expand Down

0 comments on commit 0d1e0a0

Please sign in to comment.