[PATCH] D121715: [Clang] Fix an unused-but-set-variable warning with volatile variable

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 21 11:18:53 PDT 2022


efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: clang/lib/Sema/SemaDecl.cpp:2033
     return;
+
   unsigned DiagID = isa<ParmVarDecl>(VD) ? diag::warn_unused_but_set_parameter
----------------
(Accidental change?)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121715/new/

https://reviews.llvm.org/D121715



More information about the cfe-commits mailing list