mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 10:05:10 +00:00
Fix Clang warnings in Nuklear
This commit is contained in:
parent
cb860e8150
commit
3752d68e7d
4
deps/nuklear_glfw_gl2.h
vendored
4
deps/nuklear_glfw_gl2.h
vendored
@ -219,7 +219,7 @@ nk_glfw3_clipbard_copy(nk_handle usr, const char *text, int len)
|
|||||||
if (!len) return;
|
if (!len) return;
|
||||||
str = (char*)malloc((size_t)len+1);
|
str = (char*)malloc((size_t)len+1);
|
||||||
if (!str) return;
|
if (!str) return;
|
||||||
memcpy(str, text, (size_t)len);
|
NK_MEMCPY(str, text, (size_t)len);
|
||||||
str[len] = '\0';
|
str[len] = '\0';
|
||||||
glfwSetClipboardString(glfw.win, str);
|
glfwSetClipboardString(glfw.win, str);
|
||||||
free(str);
|
free(str);
|
||||||
@ -344,7 +344,7 @@ void nk_glfw3_shutdown(void)
|
|||||||
nk_free(&glfw.ctx);
|
nk_free(&glfw.ctx);
|
||||||
glDeleteTextures(1, &dev->font_tex);
|
glDeleteTextures(1, &dev->font_tex);
|
||||||
nk_buffer_free(&dev->cmds);
|
nk_buffer_free(&dev->cmds);
|
||||||
memset(&glfw, 0, sizeof(glfw));
|
NK_MEMSET(&glfw, 0, sizeof(glfw));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user