[all-commits] [llvm/llvm-project] 3b5188: [CSSPGO] Silence -Wunused-but-set-variable warning...

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Wed Aug 30 19:00:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b51881dd530f5a8741badf3107c6b5b22516e2c
      https://github.com/llvm/llvm-project/commit/3b51881dd530f5a8741badf3107c6b5b22516e2c
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-08-31 (Thu, 31 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/SampleProfile.cpp

  Log Message:
  -----------
  [CSSPGO] Silence -Wunused-but-set-variable warning without asserts (NFC)

/data/home/jiefu/llvm-project/llvm/lib/Transforms/IPO/SampleProfile.cpp:2189:8: error: variable 'IsFuncHashMismatch' set but not used [-Werror,-Wunused-but-set-variable]
  bool IsFuncHashMismatch = false;
       ^
1 error generated.




More information about the All-commits mailing list