Archived issue #0031821
Coding - Uninitialized variables in TKFillet project
Description
Steps to reproduce
- Create Open Cascade solution for Visual Studio 2019.
- Go to the properties of TKFillet project, Configuration Properties → Code Analysis → Microsoft, in the combobox Active Rules choose item C++ Core Check Type Rules and press OK button.
- Build the project TKFillet.
- Show the list of messages related to uninitialized variables in the project TKFillet:
- Select the project TKFillet in Solution Explorer.
- Open Error List window.
- In the first combobox choose the item Current Project.
- In the second combobox choose the item Build + IntelliSense.
- Hover the mouse cursor over the column Code of the table, press "filter" button, deselect all selected codes, then select the following codes:
- C6001 https://docs.microsoft.com/en-us/cpp/code-quality/c6001?view=vs-2019
- C26494 (VAR_USE_BEFORE_INIT) https://docs.microsoft.com/en-us/cpp/code-quality/c26494?view=vs-2019
- C26495 (MEMBER_UNINIT) https://docs.microsoft.com/en-us/cpp/code-quality/c26495?view=vs-2019</a>.
- If you want to save the list of messages shown in the table, select them (select any item in the table and press Ctrl+A) and press Ctrl+C. The attached file Attachment 1 (TXT) contains the list of messages obtained this way.
Public activity
5 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Author.
[revision removed]
Detailed log of new commits:
Author: tiv
Date: Mon Oct 5 09:52:31 2020 +0300
0031821: Coding - Uninitialized variables in TKFillet project
Some variables that remain uninitialized in the project TKFillet received proper initializers.
[revision removed]
Detailed log of new commits:
Author: tiv
Date: Mon Oct 5 09:52:31 2020 +0300
0031821: Coding - Uninitialized variables in TKFillet project
Some variables that remain uninitialized in the project TKFillet received proper initializers.
Patch is ready for review: http://jenkins-test-12.nnov.opencascade.com:8080/view/CR31821-master-TIV/view/ALL/
OCCT branch: CR31821
OCCT branch: CR31821
Please raise the patch.
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 18038.89000000012 / 18085.73000000008 [-0.26%]
Products
Total CPU difference: 12182.170000000115 / 12217.490000000116 [-0.29%]
Windows-64-VC14:
OCCT
Total CPU difference: 19726.21875 / 19713.9375 [+0.06%]
Products
Total CPU difference: 13586.625 / 13579.390625 [+0.05%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.
Number of compiler warnings:
No new/fixed warnings
Regressions/Differences/Improvements:
No regressions/differences
CPU differences:
Debian80-64:
OCCT
Total CPU difference: 18038.89000000012 / 18085.73000000008 [-0.26%]
Products
Total CPU difference: 12182.170000000115 / 12217.490000000116 [-0.29%]
Windows-64-VC14:
OCCT
Total CPU difference: 19726.21875 / 19713.9375 [+0.06%]
Products
Total CPU difference: 13586.625 / 13579.390625 [+0.05%]
Image differences :
No differences that require special attention
Memory differences :
No differences that require special attention
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Related records