[PATCH] D29860: [XRay] [compiler-rt] [NFC] Annotate unused variables for the compiler.
Martin Pelikán via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 17 22:08:09 PST 2017
pelikan marked an inline comment as done.
pelikan added inline comments.
================
Comment at: lib/xray/xray_fdr_logging.cc:526
-static auto Unused = [] {
+static auto UNUSED Unused = [] {
using namespace __xray;
----------------
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.
https://reviews.llvm.org/D29860
More information about the llvm-commits
mailing list