[PATCH] D29860: [XRay] [compiler-rt] [NFC] Annotate unused variables for the compiler.
Dean Michael Berris via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 28 01:01:25 PST 2017
dberris added inline comments.
================
Comment at: lib/xray/xray_fdr_logging.cc:526
-static auto Unused = [] {
+static auto UNUSED Unused = [] {
using namespace __xray;
----------------
dberris wrote:
> pelikan wrote:
> > dberris wrote:
> > > Where does `UNUSED` come from?
> > $ git grep UNUSED | grep \#define
> > lib/builtins/int_lib.h:#define UNUSED
> > lib/builtins/int_lib.h:#define UNUSED __attribute__((unused))
> >
> > This comes from the sanitizer_common header set.
> Don't you need to include a header to get that definition?
Apparently not. Landed without further changes after local testing.
Repository:
rL LLVM
https://reviews.llvm.org/D29860
More information about the llvm-commits
mailing list