[PATCH] D152180: [Sema] Do not emit -Wunused-variable for variables declared with cleanup attribute

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 5 10:46:48 PDT 2023


nickdesaulniers accepted this revision.
nickdesaulniers added a comment.

Thanks for the patch!



================
Comment at: clang/test/Sema/warn-unused-variables.c:35
+void c1(int *);
+int f4(void) {
+  int __attribute__((cleanup(c1))) X1 = 4;
----------------
`void` return type


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152180



More information about the cfe-commits mailing list