Bug 496948 - part 1: collection of MSVC compiler warnings with master as of 02-12-2024
Summary: part 1: collection of MSVC compiler warnings with master as of 02-12-2024
Status: RESOLVED MOVED
Alias: None
Product: LabPlot2
Classification: Applications
Component: backend (show other bugs)
Version: latest
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Stefan Gerlach
URL:
Keywords:
Depends on:
Blocks: 496949 496951
  Show dependency treegraph
 
Reported: 2024-12-02 17:59 UTC by uwestoehr
Modified: 2024-12-14 11:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description uwestoehr 2024-12-02 17:59:30 UTC
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:

[184/1113] Building CXX object _deps\vector_blf-build\src\Vector\BLF\CMakeFiles\Vector_BLF.dir\ObjectQueue.cpp.obj
J:\LabPlotBuilds\7251209f\build\_deps\vector_blf-src\src\Vector/BLF/ObjectQueue.h(101): warning C4910: 'Vector::BLF::ObjectQueue<Vector::BLF::ObjectHeaderBase>': '__declspec(dllexport)' and 'extern' are incompatible on an explicit instantiation

[187/1113] Building CXX object _deps\vector_blf-build\src\Vector\BLF\CMakeFiles\Vector_BLF.dir\RestorePoints.cpp.obj
J:\LabPlotBuilds\7251209f\build\_deps\vector_blf-src\src\Vector\BLF\RestorePoints.cpp(31): warning C4267: 'return': conversion from 'size_t' to 'uint32_t', possible loss of data

[196/1113] Building CXX object _deps\vector_blf-build\src\Vector\BLF\CMakeFiles\Vector_BLF.dir\UncompressedFile.cpp.obj
J:\LabPlotBuilds\7251209f\build\_deps\vector_blf-src\src\Vector\BLF\UncompressedFile.cpp(124): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data

[220/1113] Building C object src\CMakeFiles\labplotnsllib.dir\backend\nsl\nsl_hilbert.c.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\nsl\nsl_hilbert.c(55): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data

[226/1113] Building C object src\CMakeFiles\labplotnsllib.dir\backend\nsl\nsl_math.c.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\nsl\nsl_math.c(49): warning C4244: '=': conversion from 'double' to 'int', possible loss of data

[275/1113] Building CXX object src\CMakeFiles\labplotnsllib.dir\backend\nsl\nsl_baseline.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\nsl\nsl_baseline.cpp(24): warning C4068: unknown pragma 'GCC'
J:\LabPlotBuilds\7f6984e\labplot\src\backend\nsl\nsl_baseline.cpp(25): warning C4068: unknown pragma 'GCC'
J:\LabPlotBuilds\7f6984e\labplot\src\backend\nsl\nsl_baseline.cpp(28): warning C4068: unknown pragma 'GCC'

[409/1113] Building CXX object src\CMakeFiles\labplotbackendlib.dir\backend\core\column\ColumnPrivate.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\core\column\ColumnPrivate.cpp(3124): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data

[428/1113] Building CXX object src\CMakeFiles\labplotbackendlib.dir\backend\datasources\filters\AsciiFilter.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\AsciiFilter.cpp(830): warning C4018: '<': signed/unsigned mismatch
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\AsciiFilter.cpp(1519): warning C4267: 'argument': conversion from 'size_t' to 'unsigned long', possible loss of data

[434/1113] Building CXX object src\CMakeFiles\labplotbackendlib.dir\backend\datasources\filters\DBCParser.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\DBCParser.cpp(64): warning C4267: 'argument': conversion from 'size_t' to 'const T', possible loss of data
        with
        [
            T=int
        ]

[440/1113] Building CXX object src\CMakeFiles\labplotbackendlib.dir\backend\datasources\filters\CANFilter.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\CANFilter.cpp(238): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data

[443/1113] Building CXX object src\CMakeFiles\labplotbackendlib.dir\backend\datasources\filters\VectorBLFFilter.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(148): warning C4101: 'e': unreferenced local variable
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(373): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(376): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(379): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(418): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(419): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(422): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(425): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(426): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(430): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(432): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(434): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\VectorBLFFilter.cpp(290): warning C4101: 'e': unreferenced local variable

[445/1113] Building CXX object src\CMakeFiles\labplotbackendlib.dir\backend\datasources\filters\HDF5Filter.cpp.obj
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\HDF5Filter.cpp(1777): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
J:\LabPlotBuilds\7f6984e\labplot\src\backend\datasources\filters\HDF5Filter.cpp(1804): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
Comment 1 Stefan Gerlach 2024-12-14 11:44:54 UTC
compiler warnings and issues are now tracked in https://invent.kde.org/education/labplot/-/issues/1049