Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenVolumeMesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
bee69486
Commit
bee69486
authored
Oct 25, 2016
by
Martin Heistermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid compiler warning in range-for unit tests
parent
75322fef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/Unittests/unittests_iterators.cc
src/Unittests/unittests_iterators.cc
+3
-2
No files found.
src/Unittests/unittests_iterators.cc
View file @
bee69486
...
...
@@ -26,8 +26,9 @@ TEST_F(HexahedralMeshBase, HexVertexIterTest) {
TEST_F
(
HexahedralMeshBase
,
RangeForTest
)
{
// no EXPECTs here, if it compiles, it'll work.
generateHexahedralMesh
(
mesh_
);
for
(
const
auto
&
vh
:
mesh_
.
vertices
())
{}
VertexHandle
_dummy
;
// use vh to avoid compiler warnings
for
(
const
auto
&
vh
:
mesh_
.
vertices
())
{
_dummy
=
vh
;}
const
auto
&
constref
=
mesh_
;
for
(
const
auto
&
vh
:
constref
.
vertices
())
{}
for
(
const
auto
&
vh
:
constref
.
vertices
())
{
_dummy
=
vh
;
}
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment