View Issue Details

IDProjectCategoryView StatusLast Update
0015802ScribusInternalpublic2019-12-08 21:24
Reporterale Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.5.6.svn 
Target VersionFixed in Version1.5.6.svn 
Summary0015802: a few warnings about unused variables
Description../scribus/canvasmode_drawfreehand.cpp: In member function ‘virtual void FreehandMode::mouseMoveEvent(QMouseEvent*)’:
../scribus/canvasmode_drawfreehand.cpp:97:9: warning: variable ‘newX’ set but not used [-Wunused-but-set-variable]
   97 | double newX, newY;
      | ^~~~
../scribus/canvasmode_drawfreehand.cpp:97:15: warning: variable ‘newY’ set but not used [-Wunused-but-set-variable]
   97 | double newX, newY;
      | ^~~~



../scribus/canvasmode_drawcalligraphic.cpp: In member function ‘virtual void CalligraphicMode::mouseMoveEvent(QMouseEvent*)’:
../scribus/canvasmode_drawcalligraphic.cpp:102:9: warning: variable ‘newX’ set but not used [-Wunused-but-set-variable]
  102 | double newX, newY;
      | ^~~~
../scribus/canvasmode_drawcalligraphic.cpp:102:15: warning: variable ‘newY’ set but not used [-Wunused-but-set-variable]
  102 | double newX, newY;
      | ^~~~

../scribus/scribusdoc.cpp: In member function ‘void ScribusDoc::getClosestElementBorder(double, double, double*, double*, ScPage*, ScribusDoc::SelectionSkipBehavior)’:
../scribus/scribusdoc.cpp:13951:10: warning: unused variable ‘page’ [-Wunused-variable]
13951 | ScPage* page = (refPage == nullptr) ? currentPage() : refPage;
      | ^~~~
../scribus/scribusdoc.cpp: In member function ‘void ScribusDoc::SnapToGuides(PageItem*)’:
../scribus/scribusdoc.cpp:14081:10: warning: unused variable ‘page’ [-Wunused-variable]
14081 | ScPage* page = Pages->at(pg);
      | ^~~~
TagsNo tags attached.
PatchNo

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-09-04 08:29 ale New Issue
2019-09-04 08:32 ale Product Version => 1.5.6.svn
2019-09-04 12:39 jghali Category Build System => Internal
2019-09-04 14:34 jghali Assigned To => jghali
2019-09-04 14:34 jghali Status new => resolved
2019-09-04 14:34 jghali Resolution open => fixed
2019-09-04 14:34 jghali Fixed in Version => 1.5.6.svn
2019-09-04 14:34 jghali Summary a few warnings about unused variables... => a few warnings about unused variables
2019-12-08 21:24 cbradney Status resolved => closed