View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0027643 | Open CASCADE | OCCT:Coding | public | 2016-06-26 19:23 | 2016-12-09 16:38 |
Reporter | kgv | Assigned To | bugmaster | ||
Priority | normal | Severity | trivial | ||
Status | closed | Resolution | fixed | ||
Product Version | 7.0.0 | ||||
Target Version | 7.1.0 | Fixed in Version | 7.1.0 | ||
Summary | 0027643: Coding rules - eliminate GCC warning -Wmaybe-uninitialized | ||||
Description | The following warning appear when compiling current OCCT master:In file included from C:\occt\src\GCPnts\GCPnts_AbscissaPoint.cxx:39:0: C:\occt\src\GCPnts\GCPnts_AbscissaPoint.pxx: In static member function 'static Standard_Real GCPnts_AbscissaPoint::Length(const Adaptor3d_Curve&, Standard_Real, Standard_Real)': C:\occt\src\GCPnts\GCPnts_AbscissaPoint.pxx:320:25: warning: 'Ratio' may be used uninitialized in this function [-Wmaybe-uninitialized] return Abs(U2-U1) * Ratio; ^ C:\occt\src\GCPnts\GCPnts_AbscissaPoint.pxx: In static member function 'static Standard_Real GCPnts_AbscissaPoint::Length(const Adaptor3d_Curve&, Standard_Real, Standard_Real, Standard_Real)': C:\occt\src\GCPnts\GCPnts_AbscissaPoint.pxx:361:25: warning: 'Ratio' may be used uninitialized in this function [-Wmaybe-uninitialized] return Abs(U2-U1) * Ratio; ^ C:\occt\src\GCPnts\GCPnts_AbscissaPoint.pxx: In function 'void AdvCompute(CPnts_AbscissaPoint&, const Adaptor3d_Curve&, Standard_Real&, Standard_Real&, Standard_Real&, Standard_Real)': C:\occt\src\GCPnts\GCPnts_AbscissaPoint.pxx:175:42: warning: 'Ratio' may be used uninitialized in this function [-Wmaybe-uninitialized] theComputer.SetParameter(U0 + Abscis / Ratio); ^ C:\occt\src\GeomFill\GeomFill_SectionPlacement.cxx: In member function 'void GeomFill_SectionPlacement::Perform(const opencascade::handle<Adaptor3d_HCurve>&, Standard_Real)': C:\occt\src\GeomFill\GeomFill_SectionPlacement.cxx:669:19: warning: 'taux' may be used uninitialized in this function [-Wmaybe-uninitialized] PathParam = taux; ^ on gcc compiler: aarch64-linux-android-g++.exe (GCC) 4.9.x 20150123 (prerelease) | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
Branch CR27643 has been created by kgv. SHA-1: adcf1d18a989c5a57b307d9cdc9f760cf3c69017 Detailed log of new commits: Author: kgv Date: Sun Jun 26 20:10:35 2016 +0300 0027643: Coding rules - eliminate GCC warning -Wmaybe-uninitialized |
|
Please test the patch. |
|
Dear BugMaster, Branch CR27643 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: adcf1d18a989c5a57b307d9cdc9f760cf3c69017 Number of compiler warnings: occt component : Linux: 0 (0 on master) Windows: 0 (0 on master) MacOS : 0 (0 on master) products component : Linux: 64 (64 on master) Windows: 0 (0 on master) MacOS : 1150 Regressions/Differences/Improvements: No regressions/differences Testing cases: Not needed Testing on Linux: occt component : Total MEMORY difference: 88588680 / 88709444 [-0.14%] Total CPU difference: 19408.199999999866 / 19559.91999999992 [-0.78%] products component : Total MEMORY difference: 27450133 / 27390508 [+0.22%] Total CPU difference: 5175.459999999996 / 5182.479999999985 [-0.14%] Testing on Windows: occt component : Total MEMORY difference: 55889748 / 55895183 [-0.01%] Total CPU difference: 18294.518071798844 / 17842.068371498677 [+2.54%] products component : Total MEMORY difference: 18612816 / 18577733 [+0.19%] Total CPU difference: 5027.3194261999515 / 4930.286804199938 [+1.97%] There are no differences in images found by testdiff. |
|
Dear BugMaster, Branch CR27643 is TESTED. |
|
Branch CR27643 has been deleted by inv. SHA-1: adcf1d18a989c5a57b307d9cdc9f760cf3c69017 |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-06-26 19:23 | kgv | New Issue | |
2016-06-26 19:23 | kgv | Assigned To | => kgv |
2016-06-26 19:29 | kgv | Description Updated | |
2016-06-26 20:10 | git | Note Added: 0055480 | |
2016-06-26 20:11 | kgv | Note Added: 0055481 | |
2016-06-26 20:11 | kgv | Assigned To | kgv => bugmaster |
2016-06-26 20:11 | kgv | Severity | minor => trivial |
2016-06-26 20:11 | kgv | Status | new => resolved |
2016-06-26 20:11 | kgv | Status | resolved => reviewed |
2016-06-27 13:31 |
|
Assigned To | bugmaster => mkv |
2016-06-27 20:43 |
|
Note Added: 0055517 | |
2016-06-27 20:43 |
|
Note Added: 0055518 | |
2016-06-27 20:43 |
|
Assigned To | mkv => bugmaster |
2016-06-27 20:43 |
|
Status | reviewed => tested |
2016-06-27 20:43 |
|
Test case number | => Not needed |
2016-07-01 17:19 | bugmaster | Changeset attached | => occt master 576e3066 |
2016-07-01 17:19 | bugmaster | Status | tested => verified |
2016-07-01 17:19 | bugmaster | Resolution | open => fixed |
2016-07-22 10:45 | git | Note Added: 0056127 | |
2016-12-09 16:31 |
|
Status | verified => closed |
2016-12-09 16:38 |
|
Fixed in Version | => 7.1.0 |