juce-framework / JUCE

JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins.

Home Page:https://juce.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Build fails: error: base 'BackgroundLogo' is marked 'final', etc

yurivict opened this issue · comments

Detailed steps on how to reproduce the bug

clang-16 fails to build the version 7.0.8:

In file included from /usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Main.cpp:45:
/usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Demos.h:102:27: error: base 'BackgroundLogo' is marked 'final'
struct FlockDemo : public BackgroundLogo
                          ^
/usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Demos.h:67:8: note: 'BackgroundLogo' declared here
struct BackgroundLogo final : public AnimatedContent
       ^              ~~~~~
/usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Demos.h:104:28: error: only virtual member functions can be marked 'override'
    String getName() const override      { return "Flock"; }
                           ^~~~~~~~~
/usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Demos.h:122:18: error: only virtual member functions can be marked 'override'
    void reset() override
                 ^~~~~~~~ 
/usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Demos.h:128:101: error: only virtual member functions can be marked 'override'
    void generateCanvas (Graphics& g, SharedCanvasDescription& canvas, Rectangle<float> activeArea) override
                                                                                                    ^~~~~~~~
/usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Demos.h:191:46: error: only virtual member functions can be marked 'override'
    void handleTouch (Point<float> position) override
                                             ^~~~~~~~
/usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Demos.h:108:25: error: call to non-static member function without an object argument
        BackgroundLogo::reset();
        ~~~~~~~~~~~~~~~~^~~~~
/usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Demos.h:124:25: error: call to non-static member function without an object argument
        BackgroundLogo::reset();
        ~~~~~~~~~~~~~~~~^~~~~
/usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Demos.h:130:25: error: call to non-static member function without an object argument
        BackgroundLogo::generateCanvas (g, canvas, activeArea);
        ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/ports/devel/juce/work/JUCE-7.0.8/extras/NetworkGraphicsDemo/Source/Demos.h:381:28: error: only virtual member functions can be marked 'override'
    String getName() const override      { return "Flock with text"; }
                           ^~~~~~~~~

What is the expected behaviour?

n/a

Operating systems

Other

What versions of the operating systems?

FreeBSD 13.2

Architectures

64-bit

Stacktrace

No response

Plug-in formats (if applicable)

Standalone

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

I have not tested against the develop branch

Code of Conduct

  • I agree to follow the Code of Conduct

This is fixed on the develop branch.