[all-commits] [llvm/llvm-project] d95015: [lldb] Silence warning when building with latest MSVC

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Thu Jan 18 10:06:41 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d950157f7b290e35ce25647e255df9dccbcead2b
      https://github.com/llvm/llvm-project/commit/d950157f7b290e35ce25647e255df9dccbcead2b
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2024-01-18 (Thu, 18 Jan 2024)

  Changed paths:
    M lldb/unittests/Core/DumpDataExtractorTest.cpp

  Log Message:
  -----------
  [lldb] Silence warning when building with latest MSVC
Fixes:
```
C:\git\llvm-project\lldb\unittests\Core\DumpDataExtractorTest.cpp(140): warning C4305: 'argument': truncation from 'double' to 'const std::complex<float>::_Ty'
```


  Commit: bafdaa171a2806ceff628ed7b64ace2b92c05578
      https://github.com/llvm/llvm-project/commit/bafdaa171a2806ceff628ed7b64ace2b92c05578
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2024-01-18 (Thu, 18 Jan 2024)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/CTF/SymbolFileCTF.cpp

  Log Message:
  -----------
  [lldb] Silence warning with latest MSVC on Windows

Fixes:
```
[3465/3822] Building CXX object tools\lldb\source\Plugins\SymbolFile\CTF\CMakeFiles\lldbPluginSymbolFileCTF.dir\SymbolFileCTF.cpp.obj
C:\git\llvm-project\lldb\source\Plugins\SymbolFile\CTF\SymbolFileCTF.cpp(606) : warning C4715: 'lldb_private::SymbolFileCTF::CreateType': not all control paths return a value
```


  Commit: ded8aa61849c88492811186e0f4a7ee56a5d78ea
      https://github.com/llvm/llvm-project/commit/ded8aa61849c88492811186e0f4a7ee56a5d78ea
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2024-01-18 (Thu, 18 Jan 2024)

  Changed paths:
    M lldb/cmake/modules/LLDBConfig.cmake

  Log Message:
  -----------
  [lldb] Silence warning with latest MSVC

Fixes several of these:
```
[3370/3822] Building CXX object tools\lldb\source\Plugins\Process\U...lldbPluginProcessUtility.dir\NativeRegisterContextDBReg_x86.cpp.ob
C:\git\llvm-project\lldb\source\Plugins\Process\Utility\NativeRegisterContextDBReg_x86.h(23): warning C4589: Constructor of abstract class 'lldb_private::NativeRegisterContextDBReg_x86' ignores initializer for virtual base class 'lldb_private::NativeRegisterContextRegisterInfo'
C:\git\llvm-project\lldb\source\Plugins\Process\Utility\NativeRegisterContextDBReg_x86.h(23): note: virtual base classes are only initialized by the most-derived type
```


  Commit: cb67dc19256565d15f6bed0e9808f4026ca04995
      https://github.com/llvm/llvm-project/commit/cb67dc19256565d15f6bed0e9808f4026ca04995
  Author: Alexandre Ganea <alex_toresh at yahoo.fr>
  Date:   2024-01-18 (Thu, 18 Jan 2024)

  Changed paths:
    M lldb/unittests/DataFormatter/StringPrinterTests.cpp

  Log Message:
  -----------
  [lldb] Silence narrowing conversion warning with MSVC

Fixes:
```
[13/270] Building CXX object tools\lldb\unittests\Core\CMakeFiles\LLDBCoreTests.dir\DumpDataExtractorTest.cpp.obj
C:\git\llvm-project\lldb\unittests\Core\DumpDataExtractorTest.cpp(140): warning C4305: 'argument': truncation from 'double' to 'const std::complex<float>::_Ty'
```


Compare: https://github.com/llvm/llvm-project/compare/c21f48e5ad17...cb67dc192565


More information about the All-commits mailing list