[all-commits] [llvm/llvm-project] d6d0c0: [NFC][llvm-nm] Fix unused variable warning

nullptr-cpp via All-commits all-commits at lists.llvm.org
Thu Jan 28 19:43:13 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d6d0c09e84d632f3a9954aebabb4933cd7bf64d3
      https://github.com/llvm/llvm-project/commit/d6d0c09e84d632f3a9954aebabb4933cd7bf64d3
  Author: Yang Fan <nullptr.cpp at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/tools/llvm-nm/llvm-nm.cpp

  Log Message:
  -----------
  [NFC][llvm-nm] Fix unused variable warning


  Commit: e5f258cb03f249601222496e6bb350fe2cc3431e
      https://github.com/llvm/llvm-project/commit/e5f258cb03f249601222496e6bb350fe2cc3431e
  Author: Yang Fan <nullptr.cpp at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp

  Log Message:
  -----------
  [NFC][DebugInfo] Fix Wreturn-type gcc warning

GCC warning:
```
/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp: In member function ‘llvm::Expected<long unsigned int> llvm::dwarf::CFIProgram::Instruction::getOperandAsUnsigned(const llvm::dwarf::CFIProgram&, uint32_t) const’:
/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp:425:1: warning: control reaches end of non-void function [-Wreturn-type]
  425 | }
      | ^
/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp: In member function ‘llvm::Expected<long int> llvm::dwarf::CFIProgram::Instruction::getOperandAsSigned(const llvm::dwarf::CFIProgram&, uint32_t) const’:
/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp:477:1: warning: control reaches end of non-void function [-Wreturn-type]
  477 | }
      | ^
```


Compare: https://github.com/llvm/llvm-project/compare/7ef79bb8e240...e5f258cb03f2


More information about the All-commits mailing list