logicomacorp / WaveSabre

Official WaveSabre repository
MIT License
246 stars 34 forks source link

fix -fpermissive error/warning on gcc/clang #47

Closed PoroCYon closed 4 years ago

PoroCYon commented 4 years ago

The error (which gets turned into a warning when specifying -fpermissive) looks like this:

WaveSabreCore/include/WaveSabreCore/SynthDevice.h:51:25: warning: declaration of ‘virtual WaveSabreCore::SynthDevice* WaveSabreCore::SynthDevice::Voice::SynthDevice() const’ changes meaning of ‘SynthDevice’ [-fpermissive]
   51 |    virtual SynthDevice *SynthDevice() const = 0;
      |                         ^~~~~~~~~~~
WaveSabreCore/include/WaveSabreCore/SynthDevice.h:15:2: note: ‘SynthDevice’ declared here as ‘class WaveSabreCore::SynthDevice WaveSabreCore::SynthDevice::SynthDevice’
   15 |  {
      |  ^