[all-commits] [llvm/llvm-project] af9923: Don't diagnose unused but set when the Cleanup att...

Michael Benfield via All-commits all-commits at lists.llvm.org
Wed Sep 22 10:48:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af99236747872af7e77092cbf6ddd18fa8623a2f
      https://github.com/llvm/llvm-project/commit/af99236747872af7e77092cbf6ddd18fa8623a2f
  Author: Michael Benfield <mbenfield at google.com>
  Date:   2021-09-22 (Wed, 22 Sep 2021)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/Sema/warn-unused-but-set-variables.c

  Log Message:
  -----------
  Don't diagnose unused but set when the Cleanup attribute is used.

This applies to -Wunused-but-set-variable and
-Wunused-but-set-parameter.

This addresses bug 51865.

Differential Revision: https://reviews.llvm.org/D109862




More information about the All-commits mailing list