|
|
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 |
|
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.
|
|
|
|
|
|
Re: Compilation of ScatterDraw cause warnings [message #52312 is a reply to message #51507] |
Wed, 04 September 2019 12:32 |
|
koldo
Messages: 3357 Registered: August 2008
|
Senior Veteran |
|
|
Code now tested with these gcc flags:
"-Wall"
"-Wextra"
"-Wpedantic"
"-Wcast-align"
"-Wcast-qual"
"-Wctor-dtor-privacy"
"-Wdisabled-optimization"
"-Wformat=2"
"-Winit-self"
"-Wlogical-op"
"-Wmissing-include-dirs"
"-Wnoexcept"
"-Wold-style-cast"
"-Wredundant-decls"
"-Wshadow"
"-Wsign-promo"
"-Wstrict-null-sentinel"
"-Wstrict-overflow=4"
"-Wundef"
"-Wunused-variable"
Best regards
Iñaki
|
|
|
Goto Forum:
Current Time: Fri Apr 26 05:16:17 CEST 2024
Total time taken to generate the page: 0.08943 seconds
|
|
|