Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ScatterDraw & ScatterCtrl » Compilation of ScatterDraw cause warnings (Should be fixed before 2019.1)
Compilation of ScatterDraw cause warnings [message #51493] Wed, 03 April 2019 20:44 Go to previous message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

Our latest changes in build methods (We added -Wall flags that enables a lot of additional warnings) there are a lot of errors related to Scatter. I tested with ScatterCtrl_Demo. Here is the list:
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (6): In file included from /home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h:6,
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.h (4): from /home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.h:4,
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (1): from /home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp:1:
 (): bool areas;
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (385): warning: unused variable 'posx' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (386): warning: unused variable 'posy' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (387): warning: unused variable 'dx' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (388): warning: unused variable 'dy' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (759): warning: enumeration value 'NONE' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (759): warning: enumeration value 'LEFT_UP' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (759): warning: enumeration value 'LEFT_DOUBLE' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (759): warning: enumeration value 'LEFT_MOVE' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (759): warning: enumeration value 'MIDDLE_UP' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (759): warning: enumeration value 'MIDDLE_MOVE' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (759): warning: enumeration value 'RIGHT_UP' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterCtrl/ScatterCtrl.cpp (759): warning: enumeration value 'RIGHT_MOVE' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1661): warning: enumeration value 'ALIGN_NULL' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1661): warning: enumeration value 'ALIGN_JUSTIFY' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1408): warning: unused variable 'r' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1448): warning: unused variable 'x_c' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1449): warning: unused variable 'y_c' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1661): warning: enumeration value 'ALIGN_NULL' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1661): warning: enumeration value 'ALIGN_JUSTIFY' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1408): warning: unused variable 'r' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1448): warning: unused variable 'x_c' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1449): warning: unused variable 'y_c' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1661): warning: enumeration value 'ALIGN_NULL' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1661): warning: enumeration value 'ALIGN_JUSTIFY' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1408): warning: unused variable 'r' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1448): warning: unused variable 'x_c' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1449): warning: unused variable 'y_c' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (717): warning: 'Upp::TableData::areas' will be initialized after [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (712): warning:   'int Upp::TableData::lendata' [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.h (671): warning:   when initialized here [-Wreorder]
/home/klugier/upp/uppsrc/ScatterDraw/DataSource.cpp (848): warning: this 'if' clause does not guard... [-Wmisleading-indentation]
/home/klugier/upp/uppsrc/ScatterDraw/Legend.cpp (142): warning: enumeration value 'TOP' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1661): warning: enumeration value 'ALIGN_NULL' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1661): warning: enumeration value 'ALIGN_JUSTIFY' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1408): warning: unused variable 'r' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1448): warning: unused variable 'x_c' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1449): warning: unused variable 'y_c' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1661): warning: enumeration value 'ALIGN_NULL' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1661): warning: enumeration value 'ALIGN_JUSTIFY' not handled in switch [-Wswitch]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1408): warning: unused variable 'r' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1448): warning: unused variable 'x_c' [-Wunused-variable]
/home/klugier/upp/uppsrc/ScatterDraw/ScatterDraw.h (1449): warning: unused variable 'y_c' [-Wunused-variable]


Koldo, it would be nice if we manage to fix that issues before release.

Sincerely,
Klugier


U++ - one framework to rule them all.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Bug] Text overflows legend box (RESOLVED)
Next Topic: [solved] ScatterCtrl: program access to the "Measures" ?
Goto Forum:
  


Current Time: Sat Apr 27 05:16:45 CEST 2024

Total time taken to generate the page: 0.07341 seconds