[all-commits] [llvm/llvm-project] c5fc78: [lldb] Fix -Wctad-maybe-unsupported in PathMapping...

Jie Fu via All-commits all-commits at lists.llvm.org
Thu Apr 20 21:00:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c5fc7809e05940674424aaed7dd06c6be0639864
      https://github.com/llvm/llvm-project/commit/c5fc7809e05940674424aaed7dd06c6be0639864
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-04-21 (Fri, 21 Apr 2023)

  Changed paths:
    M lldb/source/Target/PathMappingList.cpp

  Log Message:
  -----------
  [lldb] Fix -Wctad-maybe-unsupported in PathMappingList.cpp (NFC)

/home/jiefu/llvm-project/lldb/source/Target/PathMappingList.cpp:51:5: error: 'scoped_lock' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
    std::scoped_lock locks(m_mutex, rhs.m_mutex);
    ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/mutex:692:11: note: add a deduction guide to suppress this warning
    class scoped_lock
          ^
/home/jiefu/llvm-project/lldb/source/Target/PathMappingList.cpp:72:3: error: 'scoped_lock' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
  std::scoped_lock locks(m_mutex, rhs.m_mutex);
  ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/mutex:692:11: note: add a deduction guide to suppress this warning
    class scoped_lock
          ^
2 errors generated.




More information about the All-commits mailing list