Browse Source

Fix some warnings

gh-pages
falkTX 9 years ago
parent
commit
d362fed002
6 changed files with 15 additions and 28 deletions
  1. +1
    -4
      dgl/Makefile
  2. +1
    -1
      dgl/src/Geometry.cpp
  3. +2
    -0
      dgl/src/Window.cpp
  4. +0
    -17
      dgl/src/Window.mm
  5. +3
    -0
      distrho/src/DistrhoPluginLV2.cpp
  6. +8
    -6
      distrho/src/DistrhoPluginVST.cpp

+ 1
- 4
dgl/Makefile View File

@@ -63,10 +63,7 @@ all: $(TARGET)
%.cpp.o: %.cpp
$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@

%.m.o: %.m
$(CC) $< $(BUILD_C_FLAGS) -ObjC -c -o $@

%.mm.o: %.mm
%.mm.o: %.cpp
$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@

# --------------------------------------------------------------


+ 1
- 1
dgl/src/Geometry.cpp View File

@@ -629,7 +629,7 @@ void Circle<T>::_draw(const bool isOutline)

glBegin(isOutline ? GL_LINE_LOOP : GL_POLYGON);

for (int i=0; i<fNumSegments; ++i)
for (uint i=0; i<fNumSegments; ++i)
{
glVertex2f(x + fPos.fX, y + fPos.fY);



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

@@ -887,6 +887,8 @@ Window::Window(App& app, intptr_t parentId)
: pData(new PrivateData(app, this))
{
show();
// unused
return; (void)parentId;
}
#endif



+ 0
- 17
dgl/src/Window.mm View File

@@ -1,17 +0,0 @@
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2014 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
* permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
* TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include "Window.cpp"

+ 3
- 0
distrho/src/DistrhoPluginLV2.cpp View File

@@ -127,6 +127,9 @@ public:
{
fNeededUiSends = nullptr;
}
#else
// unused
(void)fWorker;
#endif

#if DISTRHO_PLUGIN_WANT_TIMEPOS


+ 8
- 6
distrho/src/DistrhoPluginVST.cpp View File

@@ -569,25 +569,27 @@ public:
break;

case effCanDo:
#if DISTRHO_PLUGIN_HAS_MIDI_INPUT || DISTRHO_PLUGIN_HAS_MIDI_OUTPUT || DISTRHO_PLUGIN_WANT_TIMEPOS
if (const char* const canDo = (const char*)ptr)
{
#if DISTRHO_PLUGIN_HAS_MIDI_INPUT
# if DISTRHO_PLUGIN_HAS_MIDI_INPUT
if (std::strcmp(canDo, "receiveVstEvents") == 0)
return 1;
if (std::strcmp(canDo, "receiveVstMidiEvent") == 0)
return 1;
#endif
#if DISTRHO_PLUGIN_HAS_MIDI_OUTPUT
# endif
# if DISTRHO_PLUGIN_HAS_MIDI_OUTPUT
if (std::strcmp(canDo, "sendVstEvents") == 0)
return 1;
if (std::strcmp(canDo, "sendVstMidiEvent") == 0)
return 1;
#endif
#if DISTRHO_PLUGIN_WANT_TIMEPOS
# endif
# if DISTRHO_PLUGIN_WANT_TIMEPOS
if (std::strcmp(canDo, "receiveVstTimeInfo") == 0)
return 1;
#endif
# endif
}
#endif
break;

//case effStartProcess:


Loading…
Cancel
Save