diff --git a/src/bootimage-template.cpp b/src/bootimage-template.cpp index e8f080cfb2..16dd85e11e 100644 --- a/src/bootimage-template.cpp +++ b/src/bootimage-template.cpp @@ -1,10 +1,7 @@ const unsigned NAME(BootMask) = (~static_cast(0)) / NAME(BytesPerWord); -const unsigned NAME(BootShift) = 32 - avian::util::log(NAME(BytesPerWord)); - -const unsigned NAME(BootFlatConstant) = 1 << NAME(BootShift); -const unsigned NAME(BootHeapOffset) = 1 << (NAME(BootShift) + 1); +const unsigned NAME(BootShift) UNUSED = 32 - avian::util::log(NAME(BytesPerWord)); inline unsigned LABEL(codeMapSize)(unsigned codeSize) { diff --git a/src/codegen/compiler/event.cpp b/src/codegen/compiler/event.cpp index 49c406c08e..575bede6ac 100644 --- a/src/codegen/compiler/event.cpp +++ b/src/codegen/compiler/event.cpp @@ -1111,10 +1111,10 @@ class CombineEvent : public Event { "%p %p %d : %p %p %d\n", secondValue, secondValue->source, - secondValue->source->type(c), + static_cast(secondValue->source->type(c)), secondValue->nextWord, secondValue->nextWord->source, - secondValue->nextWord->source->type(c)); + static_cast(secondValue->nextWord->source->type(c))); } }