forked from OSchip/llvm-project
[XRay] [compiler-rt] [NFC] Annotate unused variables for the compiler.
Summary: Use a common definition of a "this variable is unused" annotation for useless variables only present for their lambda global initializers, to silence gcc's warning. Reviewers: dberris Reviewed By: dberris Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D29860 llvm-svn: 296449
This commit is contained in:
parent
a9ba450c52
commit
fbe64b65a8
|
@ -523,7 +523,7 @@ void fdrLoggingHandleArg0(int32_t FuncId,
|
|||
|
||||
} // namespace __xray
|
||||
|
||||
static auto Unused = [] {
|
||||
static auto UNUSED Unused = [] {
|
||||
using namespace __xray;
|
||||
if (flags()->xray_fdr_log) {
|
||||
XRayLogImpl Impl{
|
||||
|
|
|
@ -129,7 +129,7 @@ void __xray_InMemoryRawLog(int32_t FuncId,
|
|||
}
|
||||
}
|
||||
|
||||
static auto Unused = [] {
|
||||
static auto UNUSED Unused = [] {
|
||||
if (!probeRequiredCPUFeatures()) {
|
||||
Report("Required CPU features missing for XRay instrumentation, not "
|
||||
"installing instrumentation hooks.\n");
|
||||
|
|
Loading…
Reference in New Issue