Skip to content

Commit

Permalink
Resolved pedantic errors in initializing constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jlreitz-amazon committed Jan 19, 2024
1 parent 4e0b892 commit 41c295c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/nunavut/lang/cpp/templates/_fields_as_union.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
: tag_{I}
, internal_union_value_{}
{
(void)i; //avoid unused param warning
do_emplace<I>(std::forward<Args>(args)...);
}

Expand Down
2 changes: 1 addition & 1 deletion src/nunavut/lang/cpp/templates/_fields_as_variant.j2
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
VariantType(nunavut::support::in_place_index_t<I> i, Args&&... args) :
Base{std::in_place_index_t<I>{}, std::forward<Args>(args)...}
{
(void)i; // avoid unused param
(void)i; // avoid unused param warning
}

// Copy constructor
Expand Down

0 comments on commit 41c295c

Please sign in to comment.