diff --git a/MainWindow.cpp b/MainWindow.cpp index 863a3bd..21a2f99 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -428,6 +428,7 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event) void MainWindow::keyPressEvent(QKeyEvent *event) { #ifdef Q_OS_OSX // On Mac OS X + Q_UNUSED(event); // Do nothing #endif diff --git a/Polygon.cpp b/Polygon.cpp index 5198e67..6b4882e 100644 --- a/Polygon.cpp +++ b/Polygon.cpp @@ -34,9 +34,6 @@ void Polygon::_constrainVertex(const QPolygonF& polygon, int i, QPointF& v) if (polygon.size() <= 3) return; - // Save previous position of vertex. - QPointF prevV = polygon.at(i); - // Look at the two adjunct segments to vertex i and see if they // intersect with any non-adjacent segments. diff --git a/ShapeGraphicsItem.cpp b/ShapeGraphicsItem.cpp index 605b6d2..678ffd0 100644 --- a/ShapeGraphicsItem.cpp +++ b/ShapeGraphicsItem.cpp @@ -111,6 +111,8 @@ void ShapeGraphicsItem::paint(QPainter *painter, void ColorGraphicsItem::_prePaint(QPainter *painter, const QStyleOptionGraphicsItem *option) { + Q_UNUSED(option); + Color* color = static_cast(getMapping()->getPaint().data()); Q_ASSERT(color); diff --git a/main.cpp b/main.cpp index 4f6cbde..237d042 100644 --- a/main.cpp +++ b/main.cpp @@ -142,9 +142,6 @@ int main(int argc, char *argv[]) splash.showMessage(" " + QObject::tr("Initiating program..."), Qt::AlignLeft | Qt::AlignTop, MM::WHITE); - bool FORCE_FRENCH_LANG = false; - // set_language_to_french(app); - // Let splash for at least one second. I::sleep(1);