Cleaned up places where MM_Allocate was used without checks
[tpg/acess2.git] / Kernel / arch / x86 / include / mm_virt.h
index 5e4712f..84b088c 100644 (file)
@@ -27,7 +27,7 @@
 // === FUNCTIONS ===
 extern void    MM_FinishVirtualInit(void);
 extern void    MM_SetCR3(Uint CR3);
-extern tPAddr  MM_Allocate(tVAddr VAddr);
+extern tPAddr  MM_Allocate(tVAddr VAddr) __attribute__ ((warn_unused_result));
 extern void    MM_Deallocate(tVAddr VAddr);
 extern int     MM_Map(tVAddr VAddr, tPAddr PAddr);
 extern tPAddr  MM_Clone(void);

UCC git Repository :: git.ucc.asn.au