[libcxx-commits] [libcxx] [libc++] Remove potential 0-sized array in __compressed_pair_padding (PR #109028)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Sep 30 02:27:08 PDT 2024


serge-sans-paille wrote:

@shafik : I'm trying to have libcxx compile with `-Wzero-length-array`. With these two commits, we're done.

@ldionne : I undid the reuse of `__padding`. The motivation is two folds: 1st it would create an extra header dependency (moving `__padding` definition to another header so that it can be included both in `string` and `compressed_pair.h`) and second  `compressed_pair` is now scarcely used, so it's probably ok to keep related stuff in the same header (?). 

https://github.com/llvm/llvm-project/pull/109028


More information about the libcxx-commits mailing list