Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre NARVOR
rtac_base
Commits
86c3d985
Commit
86c3d985
authored
Oct 27, 2021
by
Pierre NARVOR
Browse files
[cuda/functors] Revert fix and leaving nvcc warning
parent
8e287baa
Changes
1
Hide whitespace changes
Inline
Side-by-side
cuda/include/rtac_base/cuda/FunctorCompound.h
View file @
86c3d985
...
@@ -75,14 +75,14 @@ struct FunctorCompound
...
@@ -75,14 +75,14 @@ struct FunctorCompound
// PURPOSE.
// PURPOSE.
// At the time this file were written, there was a bug in nvcc compiler
// At the time this file were written, there was a bug in nvcc compiler
// about if constexpr. The bug triggers a "warning: missing return
// about if constexpr. The bug triggers a "warning: missing return
// statement at end of non-void function" even though the function
// statement at end of non-void function" even though the function
OutputT();
// always returns in one of the branch of the condition above. The line
// always returns in one of the branch of the condition above. The line
// below is to suppress the warning but has no effect on the code. See
// below is to suppress the warning but has no effect on the code. See
// here for more info :
// here for more info :
// https://stackoverflow.com/questions/64523302/cuda-missing-return-statement-at-end-of-non-void-function-in-constexpr-if-fun
// https://stackoverflow.com/questions/64523302/cuda-missing-return-statement-at-end-of-non-void-function-in-constexpr-if-fun
// CAUTION : THIS CODE IMPLIES THAT ALL FUNCTORS OUTPUT MUST BE DEFAULT
// CAUTION : THIS CODE IMPLIES THAT ALL FUNCTORS OUTPUT MUST BE DEFAULT
// CONSTRUCTIBLE. MAYBE KEEPING THE WARNING IS BETTER.
// CONSTRUCTIBLE. MAYBE KEEPING THE WARNING IS BETTER.
return
typename
functor_get
<
Level
>::
OutputT
();
//
return typename functor_get<Level>::OutputT();
}
}
public:
public:
...
...
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