diff --git a/libraries/libmesosphere/include/mesosphere/kern_k_auto_object_container.hpp b/libraries/libmesosphere/include/mesosphere/kern_k_auto_object_container.hpp index a6ddac4..05a3de5 100644 --- a/libraries/libmesosphere/include/mesosphere/kern_k_auto_object_container.hpp +++ b/libraries/libmesosphere/include/mesosphere/kern_k_auto_object_container.hpp @@ -108,7 +108,8 @@ struct DummyKAutoObjectWithListComparator { static NOINLINE int Compare(KAutoObjectWithList &lhs, KAutoObjectWithList &rhs) { - AMS_ASSUME(false); + MESOSPHERE_UNUSED(lhs, rhs); + MESOSPHERE_PANIC("DummyKAutoObjectWithListComparator invoked"); } }; diff --git a/mesosphere/kernel/Makefile b/mesosphere/kernel/Makefile index b73a399..6972917 100644 --- a/mesosphere/kernel/Makefile +++ b/mesosphere/kernel/Makefile @@ -117,6 +117,7 @@ $(OFILES_SRC) : $(HFILES_BIN) kern_libc_generic.o: CFLAGS += -fno-builtin +kern_kernel_instantiations.o: CXXFLAGS += -flto #--------------------------------------------------------------------------------- # you need a rule like this for each extension you use as binary data