diff --git a/toonz/sources/stdfx/iwa_particles.cpp b/toonz/sources/stdfx/iwa_particles.cpp index a923654..8fd254c 100644 --- a/toonz/sources/stdfx/iwa_particles.cpp +++ b/toonz/sources/stdfx/iwa_particles.cpp @@ -549,7 +549,6 @@ float Iwa_Particle::get_image_gravity(TTile *ctrl1, const particles_values &valu float norm = 1.0f; - int i; if (raster32) { raster32->lock(); if (raster32 && diff --git a/toonz/sources/stdfx/particles.cpp b/toonz/sources/stdfx/particles.cpp index ce55598..8677a9d 100644 --- a/toonz/sources/stdfx/particles.cpp +++ b/toonz/sources/stdfx/particles.cpp @@ -516,9 +516,11 @@ void Particle::get_image_gravity(TTile *ctrl1, const particles_values &values, int radius = 4; gx = 0; gy = 0; +//#define OLDSTUFF +#ifdef OLDSTUFF int i; +#endif raster32->lock(); -//#define OLDSTUFF #ifdef OLDSTUFF if (!values.gravity_radius_val) { radius = 4; diff --git a/toonz/sources/stdfx/shaderfx.cpp b/toonz/sources/stdfx/shaderfx.cpp index 5c66a72..bda24f6 100644 --- a/toonz/sources/stdfx/shaderfx.cpp +++ b/toonz/sources/stdfx/shaderfx.cpp @@ -837,9 +837,6 @@ void ShaderFx::getInputData(const TRectD &rect, double frame, const TRenderSetti auto conv = [](const std::string &i) { return i.c_str(); }; std::transform(varyingStrings.begin(), varyingStrings.end(), varyingNames.begin(), conv); #else - tcg::function c_str; - std::vector varyingNames( boost::make_transform_iterator(varyingStrings.begin(), std::mem_fun_ref(&std::string::c_str)), boost::make_transform_iterator(varyingStrings.end(), std::mem_fun_ref(&std::string::c_str))); diff --git a/toonz/sources/toonz/ObjectTracker.cpp b/toonz/sources/toonz/ObjectTracker.cpp index a73d972..2f0d2f8 100644 --- a/toonz/sources/toonz/ObjectTracker.cpp +++ b/toonz/sources/toonz/ObjectTracker.cpp @@ -598,9 +598,6 @@ float CObjectTracker::Matching(TRaster32P *frame, TRaster32P *frame_temp) float dist = 0.0; float min_dist = MAX_FLOAT; - ValuePixel pixelValues_temp; - ValuePixel pixelValues; - ValuePixel *pixel_temp; ValuePixel *area_ricerca; diff --git a/toonz/sources/toonz/adjustlevelspopup.cpp b/toonz/sources/toonz/adjustlevelspopup.cpp index c8c810c..f5e148d 100644 --- a/toonz/sources/toonz/adjustlevelspopup.cpp +++ b/toonz/sources/toonz/adjustlevelspopup.cpp @@ -277,7 +277,6 @@ AdjustLevelsPopup::AdjustLevelsPopup() //------------------------- Mark Bars --------------------------- - MarksBar *histogramMarksBar, *colorBarMarksBar; QVBoxLayout *histogramViewLayout; for (i = 0; i < 5; ++i) { diff --git a/toonz/sources/toonz/batches.cpp b/toonz/sources/toonz/batches.cpp index 8f884fc..c8f2c4c 100644 --- a/toonz/sources/toonz/batches.cpp +++ b/toonz/sources/toonz/batches.cpp @@ -246,7 +246,7 @@ void TaskRunner::doRun(TFarmTask *task) return; } - int exitCode; + //int exitCode; /*QString commandline = task->getCommandLine(); @@ -346,7 +346,7 @@ void BatchesController::addCleanupTask(const TFilePath &taskFilePath) try { BatchesController::instance()->addTask(id, taskGroup); - } catch (TException &e) { + } catch (TException&) { } } @@ -423,7 +423,7 @@ void BatchesController::addComposerTask(const TFilePath &_taskFilePath) try { BatchesController::instance()->addTask(id, taskGroup); - } catch (TException &e) { + } catch (TException&) { //TMessage::error(toString(e.getMessage())); } //m_data->m_scene.setProject( mainprogramProj); diff --git a/toonz/sources/toonz/castviewer.cpp b/toonz/sources/toonz/castviewer.cpp index d940279..3c55286 100644 --- a/toonz/sources/toonz/castviewer.cpp +++ b/toonz/sources/toonz/castviewer.cpp @@ -822,8 +822,6 @@ QMenu *CastBrowser::getContextMenu(QWidget *parent, int index) void CastBrowser::expose() { - int i; - std::set selectedIndices = m_itemViewer->getPanel()->getSelectedIndices(); std::set::iterator it = selectedIndices.begin(); TUndoManager::manager()->beginBlock(); diff --git a/toonz/sources/toonz/cellselection.cpp b/toonz/sources/toonz/cellselection.cpp index 46ddca6..43db55e 100644 --- a/toonz/sources/toonz/cellselection.cpp +++ b/toonz/sources/toonz/cellselection.cpp @@ -994,7 +994,6 @@ public: void undo() const { int cellsToRemove = m_frameIds.size(); - int i; m_xsheet->removeCells(m_r0, m_c0, cellsToRemove); TApp::instance()->getCurrentXsheet()->notifyXsheetChanged(); } diff --git a/toonz/sources/toonz/columncommand.cpp b/toonz/sources/toonz/columncommand.cpp index 6f4e134..074f694 100644 --- a/toonz/sources/toonz/columncommand.cpp +++ b/toonz/sources/toonz/columncommand.cpp @@ -1241,7 +1241,6 @@ public: void undo() const { TXsheet *xsh = TApp::instance()->getCurrentXsheet()->getXsheet(); - int r0, r1; for (int i = 0; i < (int)m_oldFrames.size(); i++) { xsh->setCell(m_r0 + i, m_col, m_oldFrames[i]); } diff --git a/toonz/sources/toonz/exportpanel.cpp b/toonz/sources/toonz/exportpanel.cpp index e27aab3..c145908 100644 --- a/toonz/sources/toonz/exportpanel.cpp +++ b/toonz/sources/toonz/exportpanel.cpp @@ -290,7 +290,7 @@ void RenderController::generateMovie(TFilePath outPath, bool emitSignal) scene.load(fp); try { movieGenerator.addSoundtrack(scene, frameOffset, sceneFrames); - } catch (const TException &e) { + } catch (const TException&) { QString text = tr("The %1 scene contains an audio file with different characteristics from the one used in the first exported scene.\nThe audio file will not be included in the rendered clip.").arg(QString::fromStdWString(fp.getLevelNameW())); DVGui::MsgBox(DVGui::WARNING, text); } diff --git a/toonz/sources/toonz/fileselection.cpp b/toonz/sources/toonz/fileselection.cpp index 25232c2..68bc730 100644 --- a/toonz/sources/toonz/fileselection.cpp +++ b/toonz/sources/toonz/fileselection.cpp @@ -572,7 +572,7 @@ int importScene(TFilePath scenePath) try { scene.save(scene.getScenePath()); - } catch (TException &e) { + } catch (TException&) { MsgBox(CRITICAL, QObject::tr("There was an error saving the %1 scene.").arg(toQString(scenePath))); return 0; } diff --git a/toonz/sources/toonz/keyframeselection.cpp b/toonz/sources/toonz/keyframeselection.cpp index a247593..ef49bd0 100644 --- a/toonz/sources/toonz/keyframeselection.cpp +++ b/toonz/sources/toonz/keyframeselection.cpp @@ -48,7 +48,7 @@ bool shiftKeyframesWithoutUndo(int r0, int r1, int c0, int c1, bool cut) return false; TXsheet *xsh = TApp::instance()->getCurrentXsheet()->getXsheet(); bool isShifted = false; - int x, y; + int x; for (x = c0; x <= c1; x++) { TStageObject *stObj = xsh->getStageObject(x >= 0 ? TStageObjectId::ColumnId(x) : TStageObjectId::CameraId(0)); std::set keyToShift; diff --git a/toonz/sources/toonz/matchline.cpp b/toonz/sources/toonz/matchline.cpp index 415ffff..fa37593 100644 --- a/toonz/sources/toonz/matchline.cpp +++ b/toonz/sources/toonz/matchline.cpp @@ -881,7 +881,6 @@ QString indexes2string(const set fids) return ""; QString str; - int i; set::const_iterator it = fids.begin(); diff --git a/toonz/sources/toonz/mergecmapped.cpp b/toonz/sources/toonz/mergecmapped.cpp index a87b109..c7ec7b8 100644 --- a/toonz/sources/toonz/mergecmapped.cpp +++ b/toonz/sources/toonz/mergecmapped.cpp @@ -635,7 +635,6 @@ QString indexes2string(const set fids) return ""; QString str; - int i; set::const_iterator it = fids.begin(); diff --git a/toonz/sources/toonz/mergecolumns.cpp b/toonz/sources/toonz/mergecolumns.cpp index 8f682c9..6a1ccc5 100644 --- a/toonz/sources/toonz/mergecolumns.cpp +++ b/toonz/sources/toonz/mergecolumns.cpp @@ -441,7 +441,6 @@ QString indexes2string(const set fids) return ""; QString str; - int i; set::const_iterator it = fids.begin(); diff --git a/toonz/sources/toonz/scanpopup.cpp b/toonz/sources/toonz/scanpopup.cpp index e7e9c54..45139ae 100644 --- a/toonz/sources/toonz/scanpopup.cpp +++ b/toonz/sources/toonz/scanpopup.cpp @@ -112,7 +112,7 @@ bool defineScanner(const QString &scannerType) ret = true; -end: +//end: QApplication::restoreOverrideCursor(); return ret; } diff --git a/toonz/sources/toonz/sceneviewercontextmenu.cpp b/toonz/sources/toonz/sceneviewercontextmenu.cpp index 891bf69..e1a48f5 100644 --- a/toonz/sources/toonz/sceneviewercontextmenu.cpp +++ b/toonz/sources/toonz/sceneviewercontextmenu.cpp @@ -201,8 +201,6 @@ void SceneViewerContextMenu::addEnterGroupCommands(const TPointD &pos) if (!vi) return; - QAction *action; - if (vi->isInsideGroup() > 0) { addAction(CommandManager::instance()->getAction(MI_ExitGroup)); } diff --git a/toonz/sources/toonz/tasksviewer.cpp b/toonz/sources/toonz/tasksviewer.cpp index 24a9274..436e192 100644 --- a/toonz/sources/toonz/tasksviewer.cpp +++ b/toonz/sources/toonz/tasksviewer.cpp @@ -83,7 +83,6 @@ void TasksViewer::hideEvent(QHideEvent *) QWidget *TasksViewer::createToolBar() { - QAction *action; //Create toolbar. It is an horizontal layout with three internal toolbar. QWidget *toolBarWidget = new QWidget(this); QToolBar *cmdToolbar = new QToolBar(toolBarWidget); diff --git a/toonz/sources/toonz/xshcellmover.cpp b/toonz/sources/toonz/xshcellmover.cpp index dcba703..04a7b4d 100644 --- a/toonz/sources/toonz/xshcellmover.cpp +++ b/toonz/sources/toonz/xshcellmover.cpp @@ -313,7 +313,7 @@ public: (m_cellsMover.getQualifiers() & CellsMover::eOverwriteCells) == 0) m_cellsMover.undoMoveCells(m_cellsMover.getStartPos()); if (m_cellsMover.getQualifiers() & CellsMover::eOverwriteCells) { //rimuove le celle vecchie - int c, r, ra = m_cellsMover.getStartPos().y, rowCount = m_cellsMover.getRowCount(); + int c, ra = m_cellsMover.getStartPos().y, rowCount = m_cellsMover.getRowCount(); TXsheet *xsh = TApp::instance()->getCurrentXsheet()->getXsheet(); for (c = ca; c < ca + colCount; c++) xsh->clearCells(ra, c, rowCount); diff --git a/toonz/sources/toonz/xshcellviewer.cpp b/toonz/sources/toonz/xshcellviewer.cpp index 0e38e9e..5225407 100644 --- a/toonz/sources/toonz/xshcellviewer.cpp +++ b/toonz/sources/toonz/xshcellviewer.cpp @@ -1788,7 +1788,6 @@ void CellArea::contextMenuEvent(QContextMenuEvent *event) int y1 = m_viewer->rowToY(row) - 1; int x = pos.x - x0; TStageObject *pegbar = xsh->getStageObject(m_viewer->getObjectId(col)); - int k0, k1; int r0, r1, c0, c1; if (col >= 0) m_viewer->getCellSelection()->getSelectedCells(r0, c0, r1, c1); diff --git a/toonz/sources/toonzlib/txsheet.cpp b/toonz/sources/toonzlib/txsheet.cpp index 1ecbabd..966f795 100644 --- a/toonz/sources/toonzlib/txsheet.cpp +++ b/toonz/sources/toonzlib/txsheet.cpp @@ -939,7 +939,6 @@ int TXsheet::reframeCells(int r0, int r1, int col, int type) removeCells(r0 + nrows, col, nr - nrows); } - int k; for (int i = r0, k = 0; i < r0 + nrows; k++) { for (int i1 = 0; i1 < type; i1++) { if (cells[k].isEmpty()) diff --git a/toonz/sources/toonzqt/paramfield.cpp b/toonz/sources/toonzqt/paramfield.cpp index fa9505e..a90a25a 100644 --- a/toonz/sources/toonzqt/paramfield.cpp +++ b/toonz/sources/toonzqt/paramfield.cpp @@ -2096,7 +2096,6 @@ Slider_int::Slider_int(QWidget *parent, QString name, TIntParamP const ¶m) int minvalue; int maxvalue; - int valuestep; if (param->getValueRange(minvalue, maxvalue)) { value_->setRange(minvalue, maxvalue); } else { @@ -2155,7 +2154,6 @@ SpinBox_int::SpinBox_int(QWidget *parent, QString name, TIntParamP const ¶m) int minvalue; int maxvalue; - int valuestep; if (param->getValueRange(minvalue, maxvalue)) { value_->setRange(minvalue, maxvalue); } else { diff --git a/toonz/sources/toonzqt/pluginhost.cpp b/toonz/sources/toonzqt/pluginhost.cpp index e4d664c..714d8df 100644 --- a/toonz/sources/toonzqt/pluginhost.cpp +++ b/toonz/sources/toonzqt/pluginhost.cpp @@ -368,7 +368,7 @@ static int get_param(toonz_node_handle_t node, const char *name, toonz_param_han printf("get_param: invalid type"); return TOONZ_ERROR_NOT_FOUND; } - } catch (const std::exception &e) { + } catch (const std::exception&) { } return TOONZ_OK; }