Browse Source

Fix a few minor warnings

pull/72/head
falkTX 7 years ago
parent
commit
16d33d5d4e
4 changed files with 8 additions and 5 deletions
  1. +3
    -0
      dgl/src/Window.cpp
  2. +2
    -2
      dgl/src/nanovg/fontstash.h
  3. +2
    -2
      dgl/src/pugl/pugl_win.cpp
  4. +1
    -1
      dgl/src/sofd/libsofd.c

+ 3
- 0
dgl/src/Window.cpp View File

@@ -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


+ 2
- 2
dgl/src/nanovg/fontstash.h View File

@@ -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;


+ 2
- 2
dgl/src/pugl/pugl_win.cpp View File

@@ -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) {


+ 1
- 1
dgl/src/sofd/libsofd.c View File

@@ -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;


Loading…
Cancel
Save