[all-commits] [llvm/llvm-project] d412f3: [asan/mac] Fix a -Wformat warning

Nico Weber via All-commits all-commits at lists.llvm.org
Fri Dec 17 06:18:21 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d412f35395be8568261e318a0748ceb3731d69e6
      https://github.com/llvm/llvm-project/commit/d412f35395be8568261e318a0748ceb3731d69e6
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-12-17 (Fri, 17 Dec 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_mac.cpp

  Log Message:
  -----------
  [asan/mac] Fix a -Wformat warning

internal_getpid() is manually cast to int in all other places that
pass its result to a printf string, so do that here too for now.


  Commit: 44f0e14537801743ffc2c0d40e35b8335d0c1699
      https://github.com/llvm/llvm-project/commit/44f0e14537801743ffc2c0d40e35b8335d0c1699
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-12-17 (Fri, 17 Dec 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp

  Log Message:
  -----------
  [asan/mac] Fix a few -Wformat warnings

All other places cast uptrs to (void*) when printing it via
%p after D113099, so do that here too.


Compare: https://github.com/llvm/llvm-project/compare/a94f68a2bd31...44f0e1453780


More information about the All-commits mailing list