[all-commits] [llvm/llvm-project] 989f25: [lldb] 'scoped_lock' may not intend to support cla...

Jie Fu via All-commits all-commits at lists.llvm.org
Thu Aug 10 18:09:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 989f25001aee3457738c431ba1e977a8140726a0
      https://github.com/llvm/llvm-project/commit/989f25001aee3457738c431ba1e977a8140726a0
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M lldb/source/Host/common/File.cpp

  Log Message:
  -----------
  [lldb] 'scoped_lock' may not intend to support class template argument deduction (NFC)

/data/home/jiefu/llvm-project/lldb/source/Host/common/File.cpp:251:3: error: 'scoped_lock' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
  std::scoped_lock lock(m_descriptor_mutex, m_stream_mutex);
  ^
/opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/mutex:692:11: note: add a deduction guide to suppress this warning
    class scoped_lock
          ^
/data/home/jiefu/llvm-project/lldb/source/Host/common/File.cpp:316:3: error: 'scoped_lock' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
  std::scoped_lock lock(m_descriptor_mutex, m_stream_mutex);
  ^
/opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/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