Cppcheck [missingReturn] error
Bug report
What happened / Problem description:
When running the Cppcheck (static code analyzer) on dumux, some possible errors are reported by Cppcheck. One of them is a [missingReturn] error on the dumux/test/material/components/plotproperties.cc file :
Checking dumux/test/material/components/plotproperties.cc ...
dumux/test/material/components/plotproperties.cc:294:130: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn]
-> typename std::enable_if_t<decltype(isValid(hasNoChargeOverload{})(declval()))::value || !ComponentTraits::isIon, void> {}
please see the screenshot below for similar errors in the same file plotproperties.cc :
What you expected to happen:
No errors from Cppcheck
How to reproduce it (as minimally and precisely as possible):
run Cppcheck 2.10 on DuMux 3.6
Anything else we need to know?:
Environment:
- Dune version: 2.9
- DuMux version: 3.6
- Others: Cppcheck 2.10