Use NK_UNUSED macro

Co-authored-by: Rob Loach <robloach@gmail.com>
This commit is contained in:
Andrew Kravchuk 2021-12-14 09:15:00 +03:00 committed by GitHub
parent 019df39478
commit 5ea1a668cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ NK_API void nk_allegro5_del_image(struct nk_image* image)
static float
nk_allegro5_font_get_text_width(nk_handle handle, float height, const char *text, int len)
{
(void)height;
NK_UNUSED(height);
NkAllegro5Font *font = (NkAllegro5Font*)handle.ptr;
if (!font || !text) {
return 0;