[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:
Dean Michael Berris 2017-02-28 08:48:46 +00:00
parent a9ba450c52
commit fbe64b65a8
2 changed files with 2 additions and 2 deletions

View File

@ -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{

View File

@ -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");