Browse Source

Fix warning in Allegro5 demo

Andrew Kravchuk 4 years ago
parent
commit
019df39478
1 changed files with 1 additions and 0 deletions
  1. 1 0
      demo/allegro5/nuklear_allegro5.h

+ 1 - 0
demo/allegro5/nuklear_allegro5.h

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