Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Development
openfoam
Commits
675a7e8f
Commit
675a7e8f
authored
11 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
COMP: ops.H: added unused return value checking
parent
a3bad4c2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OpenFOAM/primitives/ops/ops.H
+10
-4
10 additions, 4 deletions
src/OpenFOAM/primitives/ops/ops.H
with
10 additions
and
4 deletions
src/OpenFOAM/primitives/ops/ops.H
+
10
−
4
View file @
675a7e8f
...
...
@@ -90,6 +90,12 @@ EqOp(nopEq, (void)x)
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#if __GNUC__
#define WARNRETURN __attribute__((warn_unused_result))
#else
#define WARNRETURN
#endif
#define Op(opName, op) \
\
template<class T, class T1, class T2> \
...
...
@@ -97,7 +103,7 @@ EqOp(nopEq, (void)x)
{ \
public: \
\
T operator()(const T1& x, const T2& y) const
\
T operator()(const T1& x, const T2& y) const
WARNRETURN
\
{ \
return op; \
} \
...
...
@@ -108,7 +114,7 @@ EqOp(nopEq, (void)x)
{ \
public: \
\
T1 operator()(const T1& x, const T2& y) const
\
T1 operator()(const T1& x, const T2& y) const
WARNRETURN
\
{ \
return op; \
} \
...
...
@@ -119,7 +125,7 @@ EqOp(nopEq, (void)x)
{ \
public: \
\
T operator()(const T& x, const T& y) const
\
T operator()(const T& x, const T& y) const
WARNRETURN
\
{ \
return op; \
} \
...
...
@@ -179,7 +185,7 @@ weightedOp(multiply, (weight*y))
#undef Op
#undef weightedOp
#undef WARNRETURN
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
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