[PATCH] D157879: [clang] Report missing designated initializers in C++

Arthur Eubanks via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 21 10:39:01 PDT 2023


aeubanks added a comment.

ah I thought this was in `-Wall` but it's not

the struct is

  struct Foo {
    const void* buffer;
    uint32_t capacity;
    uint32_t reserved;
  };

where `reserved` isn't explicitly initialized. that seems like reasonable code, but I suppose we can just explicitly initialize `reserved` here


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157879/new/

https://reviews.llvm.org/D157879



More information about the cfe-commits mailing list