| @@ -1201,6 +1201,9 @@ bool Window::openFileBrowser(const FileBrowserOptions& options) | |||||
| # else | # else | ||||
| // not implemented | // not implemented | ||||
| return false; | return false; | ||||
| // unused | |||||
| (void)options; | |||||
| # endif | # endif | ||||
| } | } | ||||
| #endif | #endif | ||||
| @@ -1226,7 +1226,7 @@ float fonsDrawText(FONScontext* stash, | |||||
| const char* str, const char* end) | const char* str, const char* end) | ||||
| { | { | ||||
| FONSstate* state = fons__getState(stash); | FONSstate* state = fons__getState(stash); | ||||
| unsigned int codepoint; | |||||
| unsigned int codepoint = 0; | |||||
| unsigned int utf8state = 0; | unsigned int utf8state = 0; | ||||
| FONSglyph* glyph = NULL; | FONSglyph* glyph = NULL; | ||||
| FONSquad q; | FONSquad q; | ||||
| @@ -1411,7 +1411,7 @@ float fonsTextBounds(FONScontext* stash, | |||||
| float* bounds) | float* bounds) | ||||
| { | { | ||||
| FONSstate* state = fons__getState(stash); | FONSstate* state = fons__getState(stash); | ||||
| unsigned int codepoint; | |||||
| unsigned int codepoint = 0; | |||||
| unsigned int utf8state = 0; | unsigned int utf8state = 0; | ||||
| FONSquad q; | FONSquad q; | ||||
| FONSglyph* glyph = NULL; | FONSglyph* glyph = NULL; | ||||
| @@ -418,7 +418,7 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam) | |||||
| } | } | ||||
| void | void | ||||
| puglGrabFocus(PuglView* view) | |||||
| puglGrabFocus(PuglView* /*view*/) | |||||
| { | { | ||||
| // TODO | // TODO | ||||
| } | } | ||||
| @@ -474,7 +474,7 @@ puglGetNativeWindow(PuglView* view) | |||||
| } | } | ||||
| void* | void* | ||||
| puglGetContext(PuglView* view) | |||||
| puglGetContext(PuglView* /*view*/) | |||||
| { | { | ||||
| #ifdef PUGL_HAVE_CAIRO | #ifdef PUGL_HAVE_CAIRO | ||||
| if (view->ctx_type == PUGL_CAIRO) { | if (view->ctx_type == PUGL_CAIRO) { | ||||
| @@ -1665,7 +1665,7 @@ static void add_place_raw (Display *dpy, const char *name, const char *path) { | |||||
| strcpy (_placelist[_placecnt].name, name); | strcpy (_placelist[_placecnt].name, name); | ||||
| _placelist[_placecnt].flags = 0; | _placelist[_placecnt].flags = 0; | ||||
| int sw; | |||||
| int sw = -1; | |||||
| query_font_geometry (dpy, _fib_gc, name, &sw, NULL, NULL, NULL); | query_font_geometry (dpy, _fib_gc, name, &sw, NULL, NULL, NULL); | ||||
| if (sw > _fib_place_width) { | if (sw > _fib_place_width) { | ||||
| _fib_place_width = sw; | _fib_place_width = sw; | ||||