Index: uspace/srv/bd/ata_bd/ata_bd.c
===================================================================
--- uspace/srv/bd/ata_bd/ata_bd.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/bd/ata_bd/ata_bd.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -500,5 +500,7 @@
 
 	d = &disk[disk_id];
-	bc.h = 0;	/* Silence warning. */
+	
+	/* Silence warning. */
+	memset(&bc, 0, sizeof(bc));
 
 	/* Compute block coordinates. */
@@ -574,5 +576,7 @@
 
 	d = &disk[disk_id];
-	bc.h = 0;	/* Silence warning. */
+	
+	/* Silence warning. */
+	memset(&bc, 0, sizeof(bc));
 
 	/* Compute block coordinates. */
Index: uspace/srv/hid/console/gcons.c
===================================================================
--- uspace/srv/hid/console/gcons.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/hid/console/gcons.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -448,17 +448,17 @@
 	
 	int pm = make_pixmap(_binary_gfx_anim_1_ppm_start,
-	    (int) &_binary_gfx_anim_1_ppm_size);
+	    (size_t) &_binary_gfx_anim_1_ppm_size);
 	async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
 	
 	pm = make_pixmap(_binary_gfx_anim_2_ppm_start,
-	    (int) &_binary_gfx_anim_2_ppm_size);
+	    (size_t) &_binary_gfx_anim_2_ppm_size);
 	async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
 	
 	pm = make_pixmap(_binary_gfx_anim_3_ppm_start,
-	    (int) &_binary_gfx_anim_3_ppm_size);
+	    (size_t) &_binary_gfx_anim_3_ppm_size);
 	async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
 	
 	pm = make_pixmap(_binary_gfx_anim_4_ppm_start,
-	    (int) &_binary_gfx_anim_4_ppm_size);
+	    (size_t) &_binary_gfx_anim_4_ppm_size);
 	async_msg_2(fbphone, FB_ANIM_ADDPIXMAP, an, pm);
 	
Index: uspace/srv/hid/fb/serial_console.c
===================================================================
--- uspace/srv/hid/fb/serial_console.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/hid/fb/serial_console.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -57,6 +57,6 @@
 void serial_putchar(wchar_t ch);
 
-static int scr_width;
-static int scr_height;
+static unsigned int scr_width;
+static unsigned int scr_height;
 static bool color = true;	/** True if producing color output. */
 static bool utf8 = false;	/** True if producing UTF8 output. */
@@ -108,5 +108,5 @@
 void serial_putchar(wchar_t ch)
 {
-	uint8_t buf[STR_BOUNDS(1)];
+	char buf[STR_BOUNDS(1)];
 	size_t offs;
 	size_t i;
@@ -294,6 +294,6 @@
 }
 
-int lastcol = 0;
-int lastrow = 0;
+unsigned int lastcol = 0;
+unsigned int lastrow = 0;
 
 /**
@@ -309,5 +309,8 @@
 
 	wchar_t c;
-	int col, row, w, h;
+	unsigned int col;
+	unsigned int row;
+	unsigned int w;
+	unsigned int h;
 	int i;
 
@@ -358,5 +361,5 @@
 				break;
 			}
-			if (col + w > scr_width || row + h > scr_height) {
+			if ((col + w > scr_width) || (row + h > scr_height)) {
 				retval = EINVAL;
 				break;
@@ -424,5 +427,5 @@
 		case FB_SCROLL:
 			i = IPC_GET_ARG1(call);
-			if ((i > scr_height) || (i < -scr_height)) {
+			if ((i > (int) scr_height) || (i < -((int) scr_height))) {
 				retval = EINVAL;
 				break;
Index: uspace/srv/hid/kbd/port/msim.c
===================================================================
--- uspace/srv/hid/kbd/port/msim.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/hid/kbd/port/msim.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -64,5 +64,5 @@
 {
 	async_set_interrupt_received(msim_irq_handler);
-	msim_cmds[0].addr = sysinfo_value("kbd.address.virtual");
+	msim_cmds[0].addr = (void *) sysinfo_value("kbd.address.virtual");
 	ipc_register_irq(sysinfo_value("kbd.inr"), device_assign_devno(),
 	    0, &msim_kbd);
Index: uspace/srv/hid/kbd/port/ns16550.c
===================================================================
--- uspace/srv/hid/kbd/port/ns16550.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/hid/kbd/port/ns16550.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -107,12 +107,4 @@
 }
 
-void ns16550_port_yield(void)
-{
-}
-
-void ns16550_port_reclaim(void)
-{
-}
-
 static void ns16550_irq_handler(ipc_callid_t iid, ipc_call_t *call)
 {
Index: uspace/srv/hid/kbd/port/sgcn.c
===================================================================
--- uspace/srv/hid/kbd/port/sgcn.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/hid/kbd/port/sgcn.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -92,5 +92,5 @@
 
 /* polling thread */
-static void *sgcn_thread_impl(void *arg);
+static void sgcn_thread_impl(void *arg);
 
 static volatile bool polling_disabled = false;
@@ -167,5 +167,5 @@
  * Thread to poll SGCN for keypresses.
  */
-static void *sgcn_thread_impl(void *arg)
+static void sgcn_thread_impl(void *arg)
 {
 	(void) arg;
Index: uspace/srv/hid/kbd/port/ski.c
===================================================================
--- uspace/srv/hid/kbd/port/ski.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/hid/kbd/port/ski.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -49,5 +49,5 @@
 #define POLL_INTERVAL		10000
 
-static void *ski_thread_impl(void *arg);
+static void ski_thread_impl(void *arg);
 static int32_t ski_getchar(void);
 
@@ -84,5 +84,5 @@
 
 /** Thread to poll Ski for keypresses. */
-static void *ski_thread_impl(void *arg)
+static void ski_thread_impl(void *arg)
 {
 	int32_t c;
Index: uspace/srv/hid/kbd/port/z8530.c
===================================================================
--- uspace/srv/hid/kbd/port/z8530.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/hid/kbd/port/z8530.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -96,12 +96,4 @@
 }
 
-void z8530_port_yield(void)
-{
-}
-
-void z8530_port_reclaim(void)
-{
-}
-
 static void z8530_irq_handler(ipc_callid_t iid, ipc_call_t *call)
 {
Index: uspace/srv/hw/bus/cuda_adb/cuda_adb.c
===================================================================
--- uspace/srv/hw/bus/cuda_adb/cuda_adb.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/hw/bus/cuda_adb/cuda_adb.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -55,5 +55,4 @@
 static void cuda_connection(ipc_callid_t iid, ipc_call_t *icall);
 static int cuda_init(void);
-static int cuda_claim(void);
 static void cuda_irq_handler(ipc_callid_t iid, ipc_call_t *call);
 
Index: uspace/srv/loader/main.c
===================================================================
--- uspace/srv/loader/main.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/loader/main.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -241,5 +241,5 @@
 		 * Allocate new filv
 		 */
-		fdi_node_t **_filv = (fdi_node_t *) malloc((count + 1) * sizeof(fdi_node_t *));
+		fdi_node_t **_filv = (fdi_node_t **) calloc(count + 1, sizeof(fdi_node_t *));
 		if (_filv == NULL) {
 			free(buf);
Index: uspace/srv/vfs/vfs.c
===================================================================
--- uspace/srv/vfs/vfs.c	(revision 3149fc05326068309a4f1f7e327f4c0c15cbd733)
+++ uspace/srv/vfs/vfs.c	(revision 07010667d034d222d9422fadac0ba0ad462c04fd)
@@ -72,7 +72,4 @@
 		ipc_call_t call;
 		ipc_callid_t callid = async_get_call(&call);
-		
-		fs_handle_t fs_handle;
-		int phone;
 		
 		switch (IPC_GET_METHOD(call)) {
