winrt: silence unused variable warning


`hr` is not used, so clang-cl will warn about an unused variable.
Silencing the warning by handling the error.

Pick-to: 6.11
Change-Id: I069f3bd8b9d4e890b80047280c809906b4967fae
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commitf707e30019e11237f1dd50f15e8eee06a9fb4975
parentad6cbb1ff44d962250716cddba652fbc3d6f2ca2
authorTim Blechmann <tim@klingt.org>
committerTim Blechmann <tim@klingt.org>
commit timeSat, 7 Feb 2026 20:10:53 +0800