diff --git a/source/backend/CarlaStandaloneNSM.cpp b/source/backend/CarlaStandaloneNSM.cpp index 064de5566..1238bc588 100644 --- a/source/backend/CarlaStandaloneNSM.cpp +++ b/source/backend/CarlaStandaloneNSM.cpp @@ -1,6 +1,6 @@ /* * Carla Standalone - * Copyright (C) 2011-2017 Filipe Coelho + * Copyright (C) 2011-2018 Filipe Coelho * * 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; } } diff --git a/source/modules/dgl/src/pugl/pugl_win.cpp b/source/modules/dgl/src/pugl/pugl_win.cpp index afbae4b35..0143eb122 100644 --- a/source/modules/dgl/src/pugl/pugl_win.cpp +++ b/source/modules/dgl/src/pugl/pugl_win.cpp @@ -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) {