[libc++] Silences an invalid compiler diagnostic.
authorMark de Wever <koraq@xs4all.nl>
Mon, 26 Jun 2023 16:15:58 +0000 (18:15 +0200)
committerMark de Wever <koraq@xs4all.nl>
Mon, 26 Jun 2023 16:15:58 +0000 (18:15 +0200)
When the value is not initialized it's never used. However silencing the
warning is trivial, as suggested by BlamKiwi.

Fixes https://llvm.org/PR63421

libcxx/include/__format/format_arg_store.h

index 669b747..afba6c3 100644 (file)
@@ -229,7 +229,7 @@ _LIBCPP_HIDE_FROM_ABI void __store_basic_format_arg(basic_format_arg<_Context>*
 template <class _Context, size_t N>
 struct __packed_format_arg_store {
   __basic_format_arg_value<_Context> __values_[N];
-  uint64_t __types_;
+  uint64_t __types_ = 0;
 };
 
 template <class _Context, size_t N>