Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2013 00:30:29 -0500
From:      Joe Nosay <superbisquit@gmail.com>
To:        ports <ports@freebsd.org>
Subject:   Adding CFLAGS+= which will ignore -Woverload-virtual
Message-ID:  <CA%2BWntOskpV=M693XVyUSWeYa4_0qLG0-C4LZkZeBqE8ODsK6sQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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?"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BWntOskpV=M693XVyUSWeYa4_0qLG0-C4LZkZeBqE8ODsK6sQ>