mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Enable warnings for non virtual destructors.
This commit is contained in:
parent
93771c8238
commit
09eabcc90e
@ -10,6 +10,7 @@ class BackgroundThreadBase : public QThread {
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
BackgroundThreadBase(QObject* parent = 0) : QThread(parent) {}
|
BackgroundThreadBase(QObject* parent = 0) : QThread(parent) {}
|
||||||
|
virtual ~BackgroundThreadBase() {}
|
||||||
signals:
|
signals:
|
||||||
void Initialised();
|
void Initialised();
|
||||||
};
|
};
|
||||||
@ -18,7 +19,7 @@ template <typename T>
|
|||||||
class BackgroundThread : public BackgroundThreadBase {
|
class BackgroundThread : public BackgroundThreadBase {
|
||||||
public:
|
public:
|
||||||
BackgroundThread(QObject* parent = 0);
|
BackgroundThread(QObject* parent = 0);
|
||||||
~BackgroundThread();
|
virtual ~BackgroundThread();
|
||||||
|
|
||||||
boost::shared_ptr<T> Worker() const { return worker_; }
|
boost::shared_ptr<T> Worker() const { return worker_; }
|
||||||
|
|
||||||
|
@ -137,6 +137,9 @@ win32|fedora-win32-cross {
|
|||||||
# Last.fm
|
# Last.fm
|
||||||
LIBS += -llastfm
|
LIBS += -llastfm
|
||||||
|
|
||||||
|
# Enable a bunch of warnings
|
||||||
|
QMAKE_CXXFLAGS += -Wall -Werror=non-virtual-dtor -Woverloaded-virtual
|
||||||
|
|
||||||
# Other platform specific libraries
|
# Other platform specific libraries
|
||||||
!win32:!fedora-win32-cross {
|
!win32:!fedora-win32-cross {
|
||||||
mac {
|
mac {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user