various warning/errorwarning fixes for gcc47

. warnings (sometimes promoted to errors) in servers/ and kernel/
 . -Os for ext2 boot module to make it small enough
This commit is contained in:
Ben Gras
2012-08-27 16:19:18 +02:00
parent 2af02e0d5d
commit e4ac80eb60
20 changed files with 23 additions and 72 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ void direct_print(const char *str)
int direct_read_char(unsigned char *ch)
{
unsigned long b, sb;
unsigned long sb;
sb = inb(KB_STATUS);
@@ -130,7 +130,7 @@ int direct_read_char(unsigned char *ch)
return 0;
}
b = inb(KEYBD);
inb(KEYBD);
if (!(sb & KB_AUX_BYTE))
return 1;
-2
View File
@@ -560,7 +560,6 @@ static void vm_print(u32_t *root)
int vm_memset(endpoint_t who, phys_bytes ph, const u8_t c, phys_bytes bytes)
{
u32_t p;
int r = OK;
struct proc *whoptr = NULL;
/* NONE for physical, otherwise virtual */
@@ -592,7 +591,6 @@ int vm_memset(endpoint_t who, phys_bytes ph, const u8_t c, phys_bytes bytes)
*/
if((pfa=phys_memset(ptr, p, chunk))) {
printf("kernel memset pagefault\n");
r = EFAULT;
break;
}
bytes -= chunk;