mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 13:04:36 +03:00
Fixed few warnings
This commit is contained in:
@@ -685,9 +685,8 @@ public:
|
|||||||
struct LiveRegData {
|
struct LiveRegData {
|
||||||
uint32_t id;
|
uint32_t id;
|
||||||
|
|
||||||
inline LiveRegData() noexcept : id(BaseReg::kIdBad) {}
|
inline explicit LiveRegData(uint32_t id = BaseReg::kIdBad) noexcept : id(id) {}
|
||||||
inline explicit LiveRegData(uint32_t id) noexcept : id(id) {}
|
inline LiveRegData(const LiveRegData& other) noexcept : id(other.id) {}
|
||||||
inline explicit LiveRegData(const LiveRegData& other) noexcept : id(other.id) {}
|
|
||||||
|
|
||||||
inline void init(const LiveRegData& other) noexcept { id = other.id; }
|
inline void init(const LiveRegData& other) noexcept { id = other.id; }
|
||||||
|
|
||||||
|
|||||||
@@ -1216,9 +1216,9 @@ ASMJIT_FAVOR_SPEED Error RAPass::binPack(uint32_t group) noexcept {
|
|||||||
workReg->markStackPreferred();
|
workReg->markStackPreferred();
|
||||||
|
|
||||||
ASMJIT_RA_LOG_COMPLEX({
|
ASMJIT_RA_LOG_COMPLEX({
|
||||||
uint32_t numWorkRegs = workRegs.size();
|
uint32_t count = workRegs.size();
|
||||||
sb.clear();
|
sb.clear();
|
||||||
sb.appendFormat(" Unassigned (%u): ", numWorkRegs);
|
sb.appendFormat(" Unassigned (%u): ", count);
|
||||||
for (i = 0; i < numWorkRegs; i++) {
|
for (i = 0; i < numWorkRegs; i++) {
|
||||||
RAWorkReg* workReg = workRegs[i];
|
RAWorkReg* workReg = workRegs[i];
|
||||||
if (i) sb.appendString(", ");
|
if (i) sb.appendString(", ");
|
||||||
|
|||||||
Reference in New Issue
Block a user