diff --git a/gui.c b/gui.c index 749d7b3..7b60d5b 100644 --- a/gui.c +++ b/gui.c @@ -876,7 +876,7 @@ gui_edit_buffer_at(gui_edit_buffer *buffer, gui_int pos, gui_long *unicode, return 0; } - text = buffer->memory.ptr; + text = (gui_char*)buffer->memory.ptr; text_len = buffer->allocated; glyph_len = gui_utf_decode(text, unicode, text_len); while (glyph_len) { @@ -2846,7 +2846,6 @@ gui_panel_alloc_space(struct gui_rect *bounds, struct gui_panel_layout *layout) /* user provided ratio layout */ if (layout->row.ratio) { /* ratio in array form */ - gui_size i; gui_float ratio = (layout->row.ratio[layout->index] < 0) ? layout->row.item_ratio : layout->row.ratio[layout->index]; diff --git a/gui.h b/gui.h index a415d31..16f3986 100644 --- a/gui.h +++ b/gui.h @@ -1701,7 +1701,6 @@ struct gui_panel_layout { /* command draw call output command buffer */ }; - struct gui_layout; void gui_panel_init(struct gui_panel*, gui_float x, gui_float y, gui_float w, gui_float h, gui_flags, struct gui_command_buffer*,