[PATCH] D70122: [cmake] Disable GCC 9's -Winit-list-lifetime warning

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 00:54:52 PST 2019


labath added a comment.

`#pragma` in the constructor is actually working in this case. The reason I did not implement that originally is because adding the pragma then requires adding more preprocessor cruft to to make sure that compiler which do *not* support this warning don't spam with the "unrecognised pragma" warnings. And I wasn't sure how much are we willing to go to accommodate some particular compiler. However, the consensus seems to be that this warning is worth it, so I'm going to rewrite this patch in a more targetted fashion.

I am running the build the new patch now, and so far I don't see any occurrences of this warning outside of ArrayRef.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70122





More information about the llvm-commits mailing list