mirror of
https://github.com/corda/corda.git
synced 2025-04-25 13:29:51 +00:00
fix GCC 5.1 compiler warnings/errors
GCC is a lot more sensitive about -Werror=unused-variable, to the point that stuff declared in header files but unused in a given compilation unit is flagged. This may be due to the way we're here's the fix.
This commit is contained in:
parent
6ace3b655c
commit
1aaef6ce88
@ -1,10 +1,7 @@
|
|||||||
const unsigned NAME(BootMask) = (~static_cast<unsigned>(0))
|
const unsigned NAME(BootMask) = (~static_cast<unsigned>(0))
|
||||||
/ NAME(BytesPerWord);
|
/ NAME(BytesPerWord);
|
||||||
|
|
||||||
const unsigned NAME(BootShift) = 32 - avian::util::log(NAME(BytesPerWord));
|
const unsigned NAME(BootShift) UNUSED = 32 - avian::util::log(NAME(BytesPerWord));
|
||||||
|
|
||||||
const unsigned NAME(BootFlatConstant) = 1 << NAME(BootShift);
|
|
||||||
const unsigned NAME(BootHeapOffset) = 1 << (NAME(BootShift) + 1);
|
|
||||||
|
|
||||||
inline unsigned LABEL(codeMapSize)(unsigned codeSize)
|
inline unsigned LABEL(codeMapSize)(unsigned codeSize)
|
||||||
{
|
{
|
||||||
|
@ -1111,10 +1111,10 @@ class CombineEvent : public Event {
|
|||||||
"%p %p %d : %p %p %d\n",
|
"%p %p %d : %p %p %d\n",
|
||||||
secondValue,
|
secondValue,
|
||||||
secondValue->source,
|
secondValue->source,
|
||||||
secondValue->source->type(c),
|
static_cast<int>(secondValue->source->type(c)),
|
||||||
secondValue->nextWord,
|
secondValue->nextWord,
|
||||||
secondValue->nextWord->source,
|
secondValue->nextWord->source,
|
||||||
secondValue->nextWord->source->type(c));
|
static_cast<int>(secondValue->nextWord->source->type(c)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user