Commit 86c3d985 authored by Pierre NARVOR's avatar Pierre NARVOR
Browse files

[cuda/functors] Revert fix and leaving nvcc warning

parent 8e287baa
...@@ -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 functionOutputT();
// 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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment