Archived issue #0026988

Fresh compiler warnings (VC++ 14, GCC 5.2.1, CLang 3.6.2)

Open CASCADEOCCT:Codingclosed9 public notes

Search issues

Description

Current master exhibits several new compiler warnings generated by VC++ 14, GCC 5.2.1, CLang 3.6.2

Steps to reproduce

Build with VC++ 14, GCC 5.2, CLang 3.6.2

Public activity

9 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Sun Dec 13 13:21:54 2015 +0300

    0026988: Fresh compiler warnings (VC++ 14, GCC 5.2.1, CLang 3.6.2)
    
    Compiler warnings eliminated:
    
    - VC++: potential use of uninitialized variable
    - GCC: potential use of uninitialized variable [-Wmaybe-uninitialized], redundant const on return value [-Wignored-qualifiers]
    - CLang: missing override specifier on overloaded virtual function [-Winconsistent-missing-override], function call within typeid() [-Wpotentially-evaluated-expression]
02Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
03Commenter 3
Fix pushed to CR26988, please review
04Commenter 3
Please test the patch.
05Commenter 1
CR26988-1 branch has been created. branch contains fixes for issue 26551, 26913 and 26988
06Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


No new revisions were added by this update.
07Commenter 1
Branch CR26988-1 from occt git-repository (and master from products git-repository) was compiled on all platforms under maintenance platforms and tested on Release mode on standard platforms.
[revision removed]

Number of compiler warnings:

occt component :
http://jenkins-test-03.nnov.opencascade.com:8080/view/Warnings%20OCCT%20/
See attached Attachment 1 (XLSX)

On MacOS occurs fluctuation of warnings

products component :
http://jenkins-test-03.nnov.opencascade.com:8080/view/Warnings%20Products/
See attached Attachment 1 (XLSX)

Regressions/Differences/Improvements:
No regressions/differences

Testing cases:
Not needed

Testing on Linux:
occt component :
Total MEMORY difference: 88181650 / 93995709 [-6.19%]
Total CPU difference: 19548.44000000005 / 19277.08999999991 [+1.41%]

Testing on Windows:
occt component :
Total MEMORY difference: 54339045 / 56347813 [-3.56%]
Total CPU difference: 17495.184547898658 / 17820.399832598894 [-1.82%]

There are no differences in images found by testdiff.

Occurs decreasing library size
08Commenter 2
Branch [archived branch] has been deleted by Commenter 3.

[revision removed]
09Commenter 2
Branch [archived branch] has been deleted by Commenter 3.

[revision removed]