Archived issue #0026785

Coding rules - eliminate GCC warning -Wempty-body in LDOM_DeclareSequence.hxx

Open CASCADEOCCT:Codingclosed9 public notes

Search issues

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.

01Commenter 1
Fixed in CR24574 (see #0024574).
02Author
Please create dedicated patch.
03Commenter 2
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
04Commenter 4
Empty "else" clause is removed.
05Author
Please check patch compilation. Testing is not needed.
06Commenter 2
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
07Commenter 7
Branch [archived branch] has been rebased on the current master
08Commenter 8
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%]
09Commenter 2
Branch [archived branch] has been deleted by Author.

[revision removed]