Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
69770655
Commit
69770655
authored
12 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
Changed some DUNE_USUED uses - introduced by r6607 - to other, appropriate ways of surpressing a
warning. [[Imported from SVN: r6631]]
parent
667d2ad7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/common/test/bitsetvectortest.cc
+3
-1
3 additions, 1 deletion
dune/common/test/bitsetvectortest.cc
dune/common/test/parametertreetest.cc
+4
-2
4 additions, 2 deletions
dune/common/test/parametertreetest.cc
with
7 additions
and
3 deletions
dune/common/test/bitsetvectortest.cc
+
3
−
1
View file @
69770655
...
...
@@ -172,9 +172,11 @@ void doTest() {
testConstContainer
(
cbbf
);
// iterator interface
ConstReferenceOp
<
BBF
>
cop
DUNE_UNUSED
;
#ifndef NDEBUG
ConstReferenceOp
<
BBF
>
cop
;
assert
(
testIterator
(
bbf
,
cop
)
==
0
);
assert
(
testIterator
(
cbbf
,
cop
)
==
0
);
#endif
}
int
main
()
...
...
This diff is collapsed.
Click to expand it.
dune/common/test/parametertreetest.cc
+
4
−
2
View file @
69770655
...
...
@@ -20,10 +20,12 @@ void testparam(const P & p)
// try reading array like structures
std
::
vector
<
unsigned
int
>
array1
=
p
.
template
get
<
std
::
vector
<
unsigned
int
>
>
(
"array"
);
#ifndef NDEBUG
Dune
::
array
<
unsigned
int
,
8
>
array2
DUNE_UNUSED
=
p
.
template
get
<
Dune
::
array
<
unsigned
int
,
8
>
>
(
"array"
);
array2
=
p
.
template
get
<
Dune
::
array
<
unsigned
int
,
8
>
>
(
"array"
);
Dune
::
FieldVector
<
unsigned
int
,
8
>
array3
DUNE_UNUSED
=
p
.
template
get
<
Dune
::
FieldVector
<
unsigned
int
,
8
>
>
(
"array"
);
array3
=
p
.
template
get
<
Dune
::
FieldVector
<
unsigned
int
,
8
>
>
(
"array"
);
#endif
assert
(
array1
.
size
()
==
8
);
std
::
cout
<<
"array ="
;
for
(
unsigned
int
i
=
0
;
i
<
8
;
i
++
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment