[all-commits] [llvm/llvm-project] 4d2376: Fix -Wunused-result warnings in LLDB

Reid Kleckner via All-commits all-commits at lists.llvm.org
Fri Nov 15 16:39:40 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d23764dddc23e74ad165086d7f471a3e0e52bf8
      https://github.com/llvm/llvm-project/commit/4d23764dddc23e74ad165086d7f471a3e0e52bf8
  Author: Reid Kleckner <rnk at google.com>
  Date:   2019-11-15 (Fri, 15 Nov 2019)

  Changed paths:
    M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h
    M lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp

  Log Message:
  -----------
  Fix -Wunused-result warnings in LLDB

Three uses of try_lock intentionally ignore the result, as explained in
the comment. Make that explicit with a void cast.

Add what appears to be a missing return in the clang expression parser
code. It's a functional change, but presumably the right one.

Differential Revision: https://reviews.llvm.org/D70281




More information about the All-commits mailing list