[all-commits] [llvm/llvm-project] 3dcbfa: [debugserver] Fix more compiler warnings on arm64

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Mar 3 23:12:31 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3dcbfa27d432e3fddb61c5ad32534ce2bc1836e1
      https://github.com/llvm/llvm-project/commit/3dcbfa27d432e3fddb61c5ad32534ce2bc1836e1
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2021-03-03 (Wed, 03 Mar 2021)

  Changed paths:
    M lldb/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
    M lldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp

  Log Message:
  -----------
  [debugserver] Fix more compiler warnings on arm64

This fixes the following two warnings in code that's only compiled on
arm64:

 - warning: cast from 'const void *' to 'unsigned char *' drops const
   qualifier [-Wcast-qual]
 - warning: embedding a directive within macro arguments has undefined
   behavior [-Wembedded-directive]




More information about the All-commits mailing list