[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
Sun Feb 19 19:51:21 PST 2017
dberris accepted this revision.
dberris added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/xray/xray_fdr_logging.cc:526
-static auto Unused = [] {
+static auto UNUSED Unused = [] {
using namespace __xray;
----------------
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?
https://reviews.llvm.org/D29860
More information about the llvm-commits
mailing list