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

            Bug ID: 496949
           Summary: part 2: collection of MSVC compiler warnings with
                    master as of 02-12-2024
    Classification: Applications
           Product: LabPlot2
           Version: latest
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: backend
          Assignee: alexander.se...@web.de
          Reporter: uwesto...@web.de
                CC: alexander.se...@web.de
        Depends on: 496948
  Target Milestone: ---

here are the compilation warnings I got from MSVC 2022. Most are minor, but at
least the conversion issues should be worth to be fixed:

[447/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\lib\SignallingUndoCommand.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\lib\SignallingUndoCommand.cpp(84):
warning C4996: 'QMetaType::type': was declared deprecated
J:\LabPlotBuilds\7f6984e\labplot\src\backend\lib\SignallingUndoCommand.cpp(86):
warning C4996: 'QMetaType::create': was declared deprecated
J:\LabPlotBuilds\7f6984e\labplot\src\backend\lib\SignallingUndoCommand.cpp(98):
warning C4996: 'QMetaType::destroy': was declared deprecated
J:\LabPlotBuilds\7f6984e\labplot\src\backend\lib\SignallingUndoCommand.cpp(107):
warning C4996: 'QMetaType::typeName': was declared deprecated

[451/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\datasources\filters\MatioFilter.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\MatioFilter.cpp(753):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\MatioFilter.cpp(791):
warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss
of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\MatioFilter.cpp(791):
warning C4267: 'initializing': conversion from 'size_t' to 'const int',
possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\MatioFilter.cpp(888):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\MatioFilter.cpp(888):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\MatioFilter.cpp(941):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\MatioFilter.cpp(955):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\MatioFilter.cpp(1097):
warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss
of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\MatioFilter.cpp(1097):
warning C4267: 'initializing': conversion from 'size_t' to 'const int',
possible loss of data

[454/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\matrix\MatrixModel.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\MatrixModel.cpp(92):
warning C4927: illegal conversion; more than one user-defined conversion has
been implicitly applied
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\MatrixModel.cpp(95):
warning C4927: illegal conversion; more than one user-defined conversion has
been implicitly applied

[455/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\note\Note.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\note\Note.cpp(188): warning C4996:
'QFont::setLegacyWeight': Use setWeight() instead

[456/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\spreadsheet\SpreadsheetModel.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\spreadsheet\SpreadsheetModel.cpp(187):
warning C4927: illegal conversion; more than one user-defined conversion has
been implicitly applied
J:\LabPlotBuilds\7f6984e\labplot\src\backend\spreadsheet\SpreadsheetModel.cpp(196):
warning C4927: illegal conversion; more than one user-defined conversion has
been implicitly applied
J:\LabPlotBuilds\7f6984e\labplot\src\backend\spreadsheet\SpreadsheetModel.cpp(592):
warning C4927: illegal conversion; more than one user-defined conversion has
been implicitly applied
J:\LabPlotBuilds\7f6984e\labplot\src\backend\spreadsheet\SpreadsheetModel.cpp(594):
warning C4927: illegal conversion; more than one user-defined conversion has
been implicitly applied

[459/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\matrix\Matrix.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\Matrix.cpp(1116): warning
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\Matrix.cpp(1123): warning
C4267: '=': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\Matrix.cpp(1268): warning
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\Matrix.cpp(1275): warning
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\Matrix.cpp(1286): warning
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\Matrix.cpp(1294): warning
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\Matrix.cpp(1303): warning
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\Matrix.cpp(1311): warning
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\matrix\Matrix.cpp(1321): warning
C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data

[468/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\worksheet\TextLabel.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\TextLabel.cpp(1141):
warning C4996: 'QFont::setLegacyWeight': Use setWeight() instead

[482/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\worksheet\plots\cartesian\Histogram.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(713):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(716):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(727):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(730):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(731):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(746):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(749):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(917):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(920):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(924):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(927):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(928):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(933):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(936):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(1050):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(1063):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(1078):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(1087):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(1111):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(1124):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(1139):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Histogram.cpp(1148):
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of
data

[484/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\worksheet\plots\cartesian\CartesianPlotLegend.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\CartesianPlotLegend.cpp(887):
warning C4996: 'QFont::setLegacyWeight': Use setWeight() instead

[486/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\worksheet\plots\cartesian\Axis.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Axis.cpp(3275):
warning C4996: 'QFont::setLegacyWeight': Use setWeight() instead

[502/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\worksheet\plots\cartesian\XYCurve.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\XYCurve.cpp(2988):
warning C4996: 'QFont::setLegacyWeight': Use setWeight() instead

[511/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\backend\worksheet\plots\cartesian\Value.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\worksheet\plots\cartesian\Value.cpp(292):
warning C4996: 'QFont::setLegacyWeight': Use setWeight() instead

[512/1113] Building CXX object
src\CMakeFiles\labplotbackendlib.dir\gsl_parser.cpp.obj
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(146): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(173): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(200): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(227): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(254): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(277): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(295): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(313): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(331): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(349): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(367): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(385): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(403): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(421): warning
C4101: 'ex': unreferenced local variable
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(491): warning
C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:/LabPlotBuilds/7f6984e/labplot/src/backend/gsl/parser.ypp(613): warning
C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data


Referenced Bugs:

https://bugs.kde.org/show_bug.cgi?id=496948
[Bug 496948] part 1/2: collection of MSVC compiler warnings with master as of
02-12-2024
-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to