View Issue Details

IDProjectCategoryView StatusLast Update
0025401CommunityOCCT:Releasepublic2014-11-12 09:54
ReporterszvAssigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version6.7.1 
Target Version6.8.0Fixed in Version6.8.0 
Summary0025401: Some warnings could be eliminated
DescriptionA report from a customer:
"I just want to inform you that while using current (6.7.1) occ two warnings arise (lots of times).

Standard_math.hxx(21): warning C4005: '_USE_MATH_DEFINES' : macro redefinition
Standard_CString.hxx(31): warning C4005: 'strcasecmp' : macro redefinition

They could easily be avoided by adding an #ifndef guard around these defines."
TagsNo tags attached.
Test case numberNot needed

Relationships

related to 0024998 closedapn The incorrect _USE_MATH_DEFINES definition in Standard_math.hxx prevents the clean build for client applications 

Activities

git

2014-10-21 09:21

administrator   ~0033359

Branch CR25401 has been created by abv.

SHA-1: 25f06bdbcdbd936245aa9a8f32a655d846a8784d


Detailed log of new commits:

Author: abv
Date: Tue Oct 21 09:20:54 2014 +0400

    0025401: Some warnings could be eliminated
    
    Do not redefine macro "strcasecmp" on Windows (MSVC) if it is already defined.
    Some useless declarations and comments removed.

abv

2014-10-21 09:23

manager   ~0033360

The problem with _USE_MATH_DEFINES has been fixed by 0024998.

The fix for problem of "strcasecmp" pushed to branch CR25401, please review.

szv

2014-10-21 09:52

manager   ~0033361

Reviewed with no comments, please test.

mkv

2014-10-22 18:26

tester   ~0033585

Dear BugMaster,
Branch CR25401 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
SHA-1: 25f06bdbcdbd936245aa9a8f32a655d846a8784d

Number of compiler warnings:

occt component :
Linux: 15 (15 on master)
Windows: 0 (0 on master)
MacOS: 199 (199 on master)

products component :
Linux: 11 (11 on master)
Windows: 1 (1 on master)

Regressions/Differences:
No regressions/differences

Testing cases:
Not needed

Testing on Linux:
occt component :
Total MEMORY difference: 368659480 / 368543772
Total CPU difference: 46971.07000000004 / 44540.67000000001
products component :
Total MEMORY difference: 126580912 / 126859592
Total CPU difference: 17566.28999999996 / 17320.789999999975

Testing on Windows:
occt component :
Total MEMORY difference: 253837712 / 252945828
Total CPU difference: 33464.0 / 34935.046875
products component :
Total MEMORY difference: 71474788 / 70288428
Total CPU difference: 11812.15625 / 11337.96875

There are no differences in images found by testdiff.

git

2014-11-12 09:54

administrator   ~0034332

Branch CR25401 has been deleted by inv.

SHA-1: 25f06bdbcdbd936245aa9a8f32a655d846a8784d

Related Changesets

occt: master 3415763e

2014-10-21 05:20:54

abv


Committer: bugmaster Details Diff
0025401: Some warnings could be eliminated

Do not redefine macro "strcasecmp" on Windows (MSVC) if it is already defined.
Some useless declarations and comments removed.
Affected Issues
0025401
mod - src/Standard/Standard_CString.hxx Diff File

Issue History

Date Modified Username Field Change
2014-10-21 08:47 szv New Issue
2014-10-21 08:47 szv Assigned To => bugmaster
2014-10-21 09:01 abv Relationship added related to 0024998
2014-10-21 09:21 git Note Added: 0033359
2014-10-21 09:23 abv Note Added: 0033360
2014-10-21 09:23 abv Assigned To bugmaster => szv
2014-10-21 09:23 abv Status new => resolved
2014-10-21 09:23 abv Target Version Unscheduled => 6.8.0
2014-10-21 09:52 szv Note Added: 0033361
2014-10-21 09:52 szv Assigned To szv => mkv
2014-10-21 09:52 szv Status resolved => reviewed
2014-10-22 18:26 mkv Note Added: 0033585
2014-10-22 18:26 mkv Test case number => Not needed
2014-10-22 18:26 mkv Assigned To mkv => bugmaster
2014-10-22 18:26 mkv Status reviewed => tested
2014-10-24 15:38 bugmaster Changeset attached => occt master 3415763e
2014-10-24 15:38 bugmaster Status tested => verified
2014-10-24 15:38 bugmaster Resolution open => fixed
2014-11-11 12:43 aiv Fixed in Version => 6.8.0
2014-11-11 13:02 aiv Status verified => closed
2014-11-12 09:54 git Note Added: 0034332