diff options
author | Pavel Labath <pavel@labath.sk> | 2019-11-12 15:19:21 +0100 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-11-19 17:26:57 +0100 |
commit | 6c2151bf4c829958891e65a4cc396daa6d308eb0 (patch) | |
tree | 9e2d7bf69dab83a96046a51a7a15a4d05606d9aa /lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp | |
parent | b81cc6032902c810e0fde485d3092a947dc38541 (diff) | |
download | bcm5719-llvm-6c2151bf4c829958891e65a4cc396daa6d308eb0.tar.gz bcm5719-llvm-6c2151bf4c829958891e65a4cc396daa6d308eb0.zip |
[cmake] Disable GCC 9's -Winit-list-lifetime warning in ArrayRef
Summary:
This is a new warning which fires when one stores a reference to the
initializer_list contents in a way which may outlive the
initializer_list which it came from. In llvm this warning is triggered
whenever someone uses the initializer_list ArrayRef constructor.
This is indeed a dangerous thing to do (I myself was bitten by that at
least once), but it is not more dangerous than calling other ArrayRef
constructors with temporary objects -- something which we are used to
and have accepted as a tradeoff for ArrayRef's efficiency.
Currently, this warnings generates so much output that it completely
obscures any actionable warnings, so this patch disables it.
Reviewers: rnk, aaron.ballman
Subscribers: mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70122
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp')
0 files changed, 0 insertions, 0 deletions