Adding CFLAGS+= which will ignore -Woverload-virtual
Joe Nosay
superbisquit at gmail.com
Thu Nov 28 05:30:30 UTC 2013
This is still on building traverso with the following error and warning:
In file included from
/usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/AudioDevice.cpp:27:
/usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/AlsaDriver.h:62:6:
warning: 'AlsaDriver::setup' hides overloaded virtual function
[-Woverloaded-virtual]
int setup(bool capture=true, bool playback=true, const
QString& pcmName="hw:0", const QString& dither="None");
^
/usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/Driver.h:49:14:
note: hidden overloaded virtual function 'Driver::setup' declared
here: different number of parameters (3 vs 4)
virtual int setup(bool capture=true, bool playback=true, const
QString& cardDevice="none");
^
In file included from
/usr/home/raspycat/traverso/work/traverso-0.49.2/src/engine/AudioDevice.cpp:52:
/usr/home/raspycat/traverso/work/traverso-0.49.2/src/common/Tsar.h:66:9:
error: field has incomplete type 'void *[]'
void* _a[];
^
1 warning and 1 error generated.
*** Error code 1
A suggestion comes from
http://stackoverflow.com/questions/18515183/c-overloaded-virtual-function-warning-by-clang;
yet, my question is, "Is the pragma referred to added to the header
and
other files, or do I add a a flag which ignore the error?"
More information about the freebsd-ports
mailing list