Skip to content

[GIT PULL] Build fixes for clang-15

ammarfaizi2 requested to merge ammarfaizi2/tor:clang-fixes into main

Hi,

This series fixes build issue when compiling with clang-15. There are 6 patches in this series:

  • Patch 1 to 5 are fixes of unused variable warnings.

  • Patch 6 is a fix for pragma that only exists in GCC but used in clang.

It's available in the git repository below...

Please pull, thank you!

---
The following changes since commit 69e3b8bb843aaab65ec3a740348f5481bac13513:

  Merge branch 'tor-gitlab/mr/567' (2022-05-24 15:24:48 -0400)

are available in the Git repository at:

  https://gitlab.torproject.org/ammarfaizi2/tor.git tags/clang-fixes

for you to fetch changes up to dee215fe16e37ec0a369519facdc4648074a35b1:

  test/test_hs_descriptor: Don't invoke GCC warning when compiling with clang (2022-05-26 18:28:01 +0700)

Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
---

Ammar Faizi (6):
  channel: Fix clang-15 complaint (unused variable)
  connection_or: Fix clang-15 complaint (unused variable)
  routerlist: Fix clang-15 complaint (unused variable)
  compat_libevent: Fix clang-15 complaint (unused variable)
  test/bench: Fix clang-15 complaint (unused variable)
  test/test_hs_descriptor: Don't invoke GCC warning when compiling with clang

 src/core/or/channel.c             | 4 +---
 src/core/or/connection_or.c       | 4 ++++
 src/feature/nodelist/routerlist.c | 2 --
 src/lib/evloop/compat_libevent.c  | 2 --
 src/test/bench.c                  | 1 +
 src/test/test_hs_descriptor.c     | 3 +++
 6 files changed, 9 insertions(+), 7 deletions(-)


base-commit: 69e3b8bb843aaab65ec3a740348f5481bac13513
-- 
Ammar Faizi

Merge request reports

Loading