Skip to content
Snippets Groups Projects
Commit 1864cb81 authored by Pietro Bortolus's avatar Pietro Bortolus
Browse files

Suppressed uninitMemberVar cppcheck error

parent 89d7a7de
No related branches found
No related tags found
No related merge requests found
...@@ -202,6 +202,7 @@ struct StructDef<StructT> ...@@ -202,6 +202,7 @@ struct StructDef<StructT>
/* /*
Recursive case specialization Recursive case specialization
*/ */
template <typename StructT, typename FieldDefT, typename... FieldDefsT> template <typename StructT, typename FieldDefT, typename... FieldDefsT>
struct StructDef<StructT, FieldDefT, FieldDefsT...> struct StructDef<StructT, FieldDefT, FieldDefsT...>
{ {
...@@ -211,6 +212,7 @@ struct StructDef<StructT, FieldDefT, FieldDefsT...> ...@@ -211,6 +212,7 @@ struct StructDef<StructT, FieldDefT, FieldDefsT...>
using Inner = StructDef<StructT, FieldDefsT...>; using Inner = StructDef<StructT, FieldDefsT...>;
using FieldType = typename FieldDefT::FieldType; using FieldType = typename FieldDefT::FieldType;
// cppcheck-suppress uninitMemberVar
constexpr StructDef(const Inner& inner, FieldDefT field) constexpr StructDef(const Inner& inner, FieldDefT field)
: inner{inner}, field{field} : inner{inner}, field{field}
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment