Archived issue #0026785
Coding rules - eliminate GCC warning -Wempty-body in LDOM_DeclareSequence.hxx
Description
The following warning generated by gcc 4.9.2 with -Wextra option should be eliminated:
/occt/inc/../src/LDOM/LDOM_DeclareSequence.hxx|215|warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]|
Steps to reproduce
N/A
Public activity
9 archived notes
Participants are labeled by their role within this record.
Fixed in CR24574 (see #0024574).
Please create dedicated patch.
Branch [archived branch] has been created by Participant.
[revision removed]
Detailed log of new commits:
Author: rkv
Date: Fri Oct 23 14:14:28 2015 +0300
26785: Coding rules - eliminate GCC warning -Wempty-body in LDOM_DeclareSequence.hxx
[revision removed]
Detailed log of new commits:
Author: rkv
Date: Fri Oct 23 14:14:28 2015 +0300
26785: Coding rules - eliminate GCC warning -Wempty-body in LDOM_DeclareSequence.hxx
Empty "else" clause is removed.
Please check patch compilation. Testing is not needed.
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Branch [archived branch] has been rebased on the current master
Dear Commenter 1,
Branch CR26785 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]
Number of compiler warnings:
occt component:
Linux: 1 (1 on master)
Windows: 0 (0 on master)
products component:
Linux: 39 (39 on master)
Windows: 0 (0 on master)
Regressions/Differences:
Not detected
Testing cases:
Not needed
Testing on Linux:
Total MEMORY difference: 92404247 / 92333109 [+0.08%]
Total CPU difference: 19714.599999999795 / 19731.32999999969 [-0.08%]
Testing on Windows:
Total MEMORY difference: 58038774 / 58045359 [-0.01%]
Total CPU difference: 18154.382373499164 / 18133.462639399022 [+0.12%]
Branch CR26785 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]
Number of compiler warnings:
occt component:
Linux: 1 (1 on master)
Windows: 0 (0 on master)
products component:
Linux: 39 (39 on master)
Windows: 0 (0 on master)
Regressions/Differences:
Not detected
Testing cases:
Not needed
Testing on Linux:
Total MEMORY difference: 92404247 / 92333109 [+0.08%]
Total CPU difference: 19714.599999999795 / 19731.32999999969 [-0.08%]
Testing on Windows:
Total MEMORY difference: 58038774 / 58045359 [-0.01%]
Total CPU difference: 18154.382373499164 / 18133.462639399022 [+0.12%]
Branch [archived branch] has been deleted by Author.
[revision removed]
[revision removed]