From 304bf43a23607839eacf5b04a1bdb78568ae7b3f Mon Sep 17 00:00:00 2001 From: kobalicek Date: Mon, 13 Apr 2020 21:45:55 +0200 Subject: [PATCH] Fixed few warnings --- src/asmjit/core/radefs_p.h | 5 ++--- src/asmjit/core/rapass.cpp | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/asmjit/core/radefs_p.h b/src/asmjit/core/radefs_p.h index 46c9277..e17805b 100644 --- a/src/asmjit/core/radefs_p.h +++ b/src/asmjit/core/radefs_p.h @@ -685,9 +685,8 @@ public: struct LiveRegData { uint32_t id; - inline LiveRegData() noexcept : id(BaseReg::kIdBad) {} - inline explicit LiveRegData(uint32_t id) noexcept : id(id) {} - inline explicit LiveRegData(const LiveRegData& other) noexcept : id(other.id) {} + inline explicit LiveRegData(uint32_t id = BaseReg::kIdBad) noexcept : id(id) {} + inline LiveRegData(const LiveRegData& other) noexcept : id(other.id) {} inline void init(const LiveRegData& other) noexcept { id = other.id; } diff --git a/src/asmjit/core/rapass.cpp b/src/asmjit/core/rapass.cpp index 1fd1ea4..7d02168 100644 --- a/src/asmjit/core/rapass.cpp +++ b/src/asmjit/core/rapass.cpp @@ -1216,9 +1216,9 @@ ASMJIT_FAVOR_SPEED Error RAPass::binPack(uint32_t group) noexcept { workReg->markStackPreferred(); ASMJIT_RA_LOG_COMPLEX({ - uint32_t numWorkRegs = workRegs.size(); + uint32_t count = workRegs.size(); sb.clear(); - sb.appendFormat(" Unassigned (%u): ", numWorkRegs); + sb.appendFormat(" Unassigned (%u): ", count); for (i = 0; i < numWorkRegs; i++) { RAWorkReg* workReg = workRegs[i]; if (i) sb.appendString(", ");