[all-commits] [llvm/llvm-project] 881df5: [clang] Fix -Wunused-variable in SemaChecking.cpp ...

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Fri Mar 8 01:04:47 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 881df557501d339c7a14b16d68e43da5c732b424
      https://github.com/llvm/llvm-project/commit/881df557501d339c7a14b16d68e43da5c732b424
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2024-03-08 (Fri, 08 Mar 2024)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp

  Log Message:
  -----------
  [clang] Fix -Wunused-variable in SemaChecking.cpp (NFC)

llvm-project/clang/lib/Sema/SemaChecking.cpp:19192:15:
error: unused variable 'Field1Parent' [-Werror,-Wunused-variable]
  const Type *Field1Parent = Field1->getParent()->getTypeForDecl();
              ^
llvm-project/clang/lib/Sema/SemaChecking.cpp:19193:15:
error: unused variable 'Field2Parent' [-Werror,-Wunused-variable]
  const Type *Field2Parent = Field2->getParent()->getTypeForDecl();
              ^
2 errors generated.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list