diff --git a/configure.py b/configure.py index b4b306d7a..b1a9abaf2 100644 --- a/configure.py +++ b/configure.py @@ -828,7 +828,7 @@ config.libs = [ Object(NonMatching, "JSystem/JUtility/JUTXfb.cpp"), Object(Matching, "JSystem/JUtility/JUTFader.cpp"), Object(Matching, "JSystem/JUtility/JUTProcBar.cpp"), - Object(NonMatching, "JSystem/JUtility/JUTConsole.cpp"), + Object(Matching, "JSystem/JUtility/JUTConsole.cpp"), Object(Matching, "JSystem/JUtility/JUTDirectFile.cpp"), Object(Matching, "JSystem/JUtility/JUTGba.cpp"), Object(NonMatching, "JSystem/JUtility/JUTFontData_Ascfont_fix12.s"), diff --git a/include/JSystem/JGadget/linklist.h b/include/JSystem/JGadget/linklist.h index c07d49b69..811568ec8 100644 --- a/include/JSystem/JGadget/linklist.h +++ b/include/JSystem/JGadget/linklist.h @@ -144,10 +144,10 @@ struct TLinkList : public TNodeLinkList { /* 0x00 */ TNodeLinkList::const_iterator base; }; - static const TLinkListNode* Element_toNode(const T* element) { return reinterpret_cast(reinterpret_cast(element) - I); } - static TLinkListNode* Element_toNode(T* element) { return reinterpret_cast(reinterpret_cast(element) - I); } - static const T* Element_toValue(const TLinkListNode* node) { return reinterpret_cast(reinterpret_cast(node) + I); } - static T* Element_toValue(TLinkListNode* node) { return reinterpret_cast(reinterpret_cast(node) + I); } + static const TLinkListNode* Element_toNode(const T* element) { (void)element; return reinterpret_cast(reinterpret_cast(element) - I); } + static TLinkListNode* Element_toNode(T* element) { (void)element; return reinterpret_cast(reinterpret_cast(element) - I); } + static const T* Element_toValue(const TLinkListNode* node) { (void)node; return reinterpret_cast(reinterpret_cast(node) + I); } + static T* Element_toValue(TLinkListNode* node) { (void)node; return reinterpret_cast(reinterpret_cast(node) + I); } iterator Insert(iterator iter, T* element) { return iterator(TNodeLinkList::Insert(iter.base, Element_toNode(element))); } iterator Erase(T* element) { return iterator(TNodeLinkList::Erase(Element_toNode(element))); }