Skip to content

Commit

Permalink
Fix use of [[maybe_unused]] attribute (#10103) (#10127)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoroz committed Jun 16, 2022
1 parent 3b398b2 commit 4c1b609
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Fix use of [[maybe_unused]] attribute",
"packageName": "react-native-windows",
"email": "vmorozov@microsoft.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion vnext/Microsoft.ReactNative.Cxx/JSValueWriter.h
Expand Up @@ -287,7 +287,7 @@ inline JSValueArgWriter MakeJSValueWriter(T &&argWriter) noexcept {

template <class... TArgs>
inline JSValueArgWriter MakeJSValueWriter(TArgs &&...args) noexcept {
return [&args...](IJSValueWriter const &[[maybe_unused]] writer) noexcept { (WriteValue(writer, args), ...); };
return [&args...]([[maybe_unused]] IJSValueWriter const &writer) noexcept { (WriteValue(writer, args), ...); };
}

} // namespace winrt::Microsoft::ReactNative
Expand Down

0 comments on commit 4c1b609

Please sign in to comment.