[all-commits] [llvm/llvm-project] acaf6b: [NFC] Add [[maybe_unused]] to avoid warning in gcc9

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Thu Aug 18 23:43:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acaf6b9dc07de3c12c8a1a55fd8674bca547a917
      https://github.com/llvm/llvm-project/commit/acaf6b9dc07de3c12c8a1a55fd8674bca547a917
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-08-19 (Fri, 19 Aug 2022)

  Changed paths:
    M clang/include/clang/AST/RecursiveASTVisitor.h

  Log Message:
  -----------
  [NFC] Add [[maybe_unused]] to avoid warning in gcc9

GCC9 may issue warning for the 'unused' parameters in if constexpr.
This commit try to fix it by adding the [[maybe_unused]] attribute.




More information about the All-commits mailing list