Sat, Apr 12, 2025 at 12:46:46PM +0200, Klaus Schmidinger wrote:
Added the "override" keyword to virtual functions reimplemented in derived classes.
This C++11 keyword is misplaced in the plugin "hello". Here is the first misplaced occurrence:
hello.c: In member function ‘virtual const char* cPluginHello::Version()’: hello.c:27:56: error: ‘override’ was not declared in this scope 27 | virtual const char *Version(void) { return VERSION; override}
The keyword "override" should occur before the function body, not in the body. To my understanding, the keyword "virtual" is redundant and could be removed, because "override" alone should imply that it is a virtual member function.
Other than this, I was able to build and install the upgrade.
With best regards,
Marko