Mercurial > hg > tony
diff src/main.cpp @ 355:56109ef020b4 warnfix_no_size_t
Configure stuff and fixes for -Werror
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2014 09:13:25 +0100 |
parents | fa329ca6d75e |
children | aa576f9213bf |
line wrap: on
line diff
--- a/src/main.cpp Mon Jun 16 16:26:09 2014 +0100 +++ b/src/main.cpp Wed Jun 18 09:13:25 2014 +0100 @@ -100,6 +100,12 @@ QStringList m_filepathQueue; virtual bool event(QEvent *event) { + +// Avoid warnings/errors with -Wextra because we aren't explicitly +// handling all event types (-Wall is OK with this because of the +// default but the stricter level insists) +#pragma GCC diagnostic ignored "-Wswitch-enum" + switch (event->type()) { case QEvent::FileOpen: { @@ -198,7 +204,7 @@ qRegisterMetaType<size_t>("size_t"); qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName"); - MainWindow *gui = new MainWindow(audioOutput, false); // no osc support + MainWindow *gui = new MainWindow(audioOutput); application.setMainWindow(gui); if (splash) { QObject::connect(gui, SIGNAL(hideSplash()), splash, SLOT(hide()));