https://bugs.kde.org/show_bug.cgi?id=387115

            Bug ID: 387115
           Summary: compiler warnings with XYCurve
           Product: LabPlot2
           Version: latest
          Platform: MS Windows
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: backend
          Assignee: alexander.se...@web.de
          Reporter: uwesto...@web.de
  Target Milestone: ---

XYCurve.cpp shows hundreds of warnings. I collect here the ones that seem to be
important.

I get:

4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(698):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend/lib/commandtemplates.h(57): warning C4371:
'StandardSetterCmd<XYCurve::Private,XYCurve::ErrorBarsType>': layout of class
may have changed from a previous version of the compiler due to better packing
of member 'StandardSetterCmd<XYCurve::Private,XYCurve::ErrorBarsType>::m_field'
4> 
C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(703):
note: see declaration of
'StandardSetterCmd<XYCurve::Private,XYCurve::ErrorBarsType>'
4> 
C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(703):
note: see reference to class template instantiation
'StandardSetterCmd<XYCurve::Private,XYCurve::ErrorBarsType>' being compiled

and:

4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(705):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(712):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(719):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(725):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(733):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(742):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(747):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(754):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(773):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(781):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(789):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(797):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(805):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(813):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(821):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(829):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(838):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'


and:

4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(962):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(965):
warning C4456: declaration of 'tracer' hides previous local declaration
4> 
C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(897):
note: see declaration of 'tracer'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1005):
warning C4456: declaration of 'tracer' hides previous local declaration
4> 
C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(985):
note: see declaration of 'tracer'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1014):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1020):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1030):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1040):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1052):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1066):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1081):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1099):
warning C4365: 'initializing': conversion from 'int' to 'std::size_t',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1100):
warning C4365: 'initializing': conversion from 'int' to 'std::size_t',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1108):
warning C4365: 'argument': conversion from 'int' to 'std::size_t',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1110):
warning C4365: 'argument': conversion from 'int' to 'std::size_t',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1112):
warning C4365: 'argument': conversion from 'int' to 'std::size_t',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1114):
warning C4365: 'argument': conversion from 'int' to 'std::size_t',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1131):
warning C4365: 'argument': conversion from 'int' to 'std::size_t',
signed/unsigned mismatch

and:

4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1183):
warning C4456: declaration of 'tracer' hides previous local declaration
4> 
C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(985):
note: see declaration of 'tracer'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1190):
warning C4456: declaration of 'tracer' hides previous local declaration
4> 
C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(985):
note: see declaration of 'tracer'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1216):
warning C4458: declaration of 'lines' hides class member
4> 
c:\craftroot\labplot\src\backend\worksheet\plots\cartesian\XYCurvePrivate.h(151):
note: see declaration of 'XYCurvePrivate::lines'

and:

4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1227):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1234):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1241):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1249):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1256):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1263):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\Qt\Qt5.9.2\5.9.2\msvc2015_64\include\QtCore/qglobal.h(960): warning C4820:
'QtPrivate::QForeachContainer<QVector<QPointF>>': '4' bytes padding added after
data member 'QtPrivate::QForeachContainer<QVector<QPointF>>::control'
4> 
C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1298):
note: see reference to class template instantiation
'QtPrivate::QForeachContainer<QVector<QPointF>>' being compiled
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1326):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1333):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1340):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1348):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1368):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1456):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1678):
warning C4458: declaration of 'lines' hides class member
4> 
c:\craftroot\labplot\src\backend\worksheet\plots\cartesian\XYCurvePrivate.h(151):
note: see declaration of 'XYCurvePrivate::lines'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1703):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1703):
warning C4365: 'argument': conversion from 'std::size_t' to 'int',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1706):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1706):
warning C4365: 'argument': conversion from 'std::size_t' to 'int',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1709):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1709):
warning C4365: 'argument': conversion from 'std::size_t' to 'int',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1712):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1712):
warning C4365: 'argument': conversion from 'std::size_t' to 'int',
signed/unsigned mismatch
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(1716):
warning C4365: 'argument': conversion from 'int' to 'unsigned __int64',
signed/unsigned mismatch

and:

4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(2132):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(2224):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'
4>C:\CraftRoot\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(2391):
warning C4458: declaration of 'd' hides class member
4>  C:\CraftRoot\labplot\src\backend/core/AbstractAspect.h(183): note: see
declaration of 'AbstractAspect::d'

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to