Browse Source

Fix some small compiler warnings

tags/v1.9.11
falkTX 7 years ago
parent
commit
28d607be18
2 changed files with 11 additions and 5 deletions
  1. +9
    -3
      source/backend/CarlaStandaloneNSM.cpp
  2. +2
    -2
      source/modules/dgl/src/pugl/pugl_win.cpp

+ 9
- 3
source/backend/CarlaStandaloneNSM.cpp View File

@@ -1,6 +1,6 @@
/*
* Carla Standalone
* Copyright (C) 2011-2017 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2011-2018 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -169,13 +169,19 @@ public:
case 5: // show gui
CARLA_SAFE_ASSERT_BREAK(fReplyAddress != nullptr);
CARLA_SAFE_ASSERT_BREAK(fServer != nullptr);
lo_send_from(fReplyAddress, fServer, LO_TT_IMMEDIATE, "/nsm/client/gui_is_shown", "");
{
// NOTE: lo_send_from is a macro that creates local variables
lo_send_from(fReplyAddress, fServer, LO_TT_IMMEDIATE, "/nsm/client/gui_is_shown", "");
}
break;

case 6: // hide gui
CARLA_SAFE_ASSERT_BREAK(fReplyAddress != nullptr);
CARLA_SAFE_ASSERT_BREAK(fServer != nullptr);
lo_send_from(fReplyAddress, fServer, LO_TT_IMMEDIATE, "/nsm/client/gui_is_hidden", "");
{
// NOTE: lo_send_from is a macro that creates local variables
lo_send_from(fReplyAddress, fServer, LO_TT_IMMEDIATE, "/nsm/client/gui_is_hidden", "");
}
break;
}
}


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

@@ -418,7 +418,7 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam)
}

void
puglGrabFocus(PuglView* view)
puglGrabFocus(PuglView*)
{
// TODO
}
@@ -474,7 +474,7 @@ puglGetNativeWindow(PuglView* view)
}

void*
puglGetContext(PuglView* view)
puglGetContext(PuglView*)
{
#ifdef PUGL_HAVE_CAIRO
if (view->ctx_type == PUGL_CAIRO) {


Loading…
Cancel
Save