Cleaning up clang warnings
authorJohn Hodge (sonata) <[email protected]>
Mon, 28 Jan 2013 01:55:01 +0000 (09:55 +0800)
committerJohn Hodge (sonata) <[email protected]>
Mon, 28 Jan 2013 01:55:01 +0000 (09:55 +0800)
KernelLand/Kernel/debug.c
KernelLand/Kernel/vfs/mmap.c
Usermode/Libraries/crt0.o_src/crt0.c

index 5e17c0e..fe063c8 100644 (file)
@@ -11,6 +11,8 @@
 
 // === IMPORTS ===
 extern void    Threads_Dump(void);
+extern void    Heap_Dump(void)
+               ;
 extern void    KernelPanic_SetMode(void);
 extern void    KernelPanic_PutChar(char Ch);
 extern void    IPStack_SendDebugText(const char *Text);
@@ -22,6 +24,7 @@ void  Debug_DbgOnlyFmt(const char *format, va_list args);
 void   Debug_FmtS(int bUseKTerm, const char *format, ...);
 void   Debug_Fmt(int bUseKTerm, const char *format, va_list args);
 void   Debug_SetKTerminal(const char *File);
+void   LogFV(const char *Fmt, va_list args);
 
 // === GLOBALS ===
  int   gDebug_Level = 0;
index 8930177..21b6265 100644 (file)
@@ -86,7 +86,8 @@ void *VFS_MMap(void *DestHint, size_t Length, int Protection, int Flags, int FD,
                pb = h->Node->MMapInfo, prev = NULL;
                pb && pb->BaseOffset + MMAP_PAGES_PER_BLOCK < pagenum;
                prev = pb, pb = pb->Next
-               );
+               )
+               ;
 
        LOG("pb = %p, pb->BaseOffset = %X", pb, pb ? pb->BaseOffset : 0);
 
index cb42772..f506d72 100644 (file)
@@ -9,6 +9,7 @@ typedef void    (*constructor_t)(void);
 exithandler_t  _crt0_exit_handler;
 extern constructor_t   _crtbegin_ctors[];
 extern void    _exit(int status) __attribute__((noreturn));
+extern int     main(int argc, char *argv[], char **envp);
 
 void start(int argc, char *argv[], char **envp)
 {

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