Skip to content

Commit dae40cd

Browse files
[libc++] Remove potential 0-sized array in __packed_format_arg_store
1 parent 06e7122 commit dae40cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcxx/include/__format/format_arg_store.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ struct __packed_format_arg_store {
234234
uint64_t __types_ = 0;
235235
};
236236

237+
template <class _Context>
238+
struct __packed_format_arg_store<_Context, 0> {
239+
uint64_t __types_ = 0;
240+
};
241+
237242
template <class _Context, size_t _Np>
238243
struct __unpacked_format_arg_store {
239244
basic_format_arg<_Context> __args_[_Np];

0 commit comments

Comments
 (0)