r13537 chris_y - in /branches/vince/netsurf-options/amiga: arexx.c download.c drag.c dt_sound.c gui.c

netsurf at semichrome.net netsurf at semichrome.net
Mon Mar 19 23:38:26 GMT 2012


Author: chris_y
Date: Mon Mar 19 18:38:26 2012
New Revision: 13537

URL: http://source.netsurf-browser.org?rev=13537&view=rev
Log:
fix warnings

Modified:
    branches/vince/netsurf-options/amiga/arexx.c
    branches/vince/netsurf-options/amiga/download.c
    branches/vince/netsurf-options/amiga/drag.c
    branches/vince/netsurf-options/amiga/dt_sound.c
    branches/vince/netsurf-options/amiga/gui.c

Modified: branches/vince/netsurf-options/amiga/arexx.c
URL: http://source.netsurf-browser.org/branches/vince/netsurf-options/amiga/arexx.c?rev=13537&r1=13536&r2=13537&view=diff
==============================================================================
--- branches/vince/netsurf-options/amiga/arexx.c (original)
+++ branches/vince/netsurf-options/amiga/arexx.c Mon Mar 19 18:38:26 2012
@@ -520,7 +520,7 @@
 	int window = 0, tab = 0;
 	struct browser_window *bw = curbw;
 	struct nsObject *node, *nnode;
-	struct gui_window_2 *gwin;
+	struct gui_window_2 *gwin = NULL;
 
 	cmd->ac_RC = 0;
 

Modified: branches/vince/netsurf-options/amiga/download.c
URL: http://source.netsurf-browser.org/branches/vince/netsurf-options/amiga/download.c?rev=13537&r1=13536&r2=13537&view=diff
==============================================================================
--- branches/vince/netsurf-options/amiga/download.c (original)
+++ branches/vince/netsurf-options/amiga/download.c Mon Mar 19 18:38:26 2012
@@ -226,7 +226,7 @@
 
 void gui_download_window_done(struct gui_download_window *dw)
 {
-	struct dlnode *dln,*dln2;
+	struct dlnode *dln,*dln2 = NULL;
 	struct browser_window *bw = dw->bw;
 	bool queuedl = false;
 	STRPTR sendcmd = NULL;

Modified: branches/vince/netsurf-options/amiga/drag.c
URL: http://source.netsurf-browser.org/branches/vince/netsurf-options/amiga/drag.c?rev=13537&r1=13536&r2=13537&view=diff
==============================================================================
--- branches/vince/netsurf-options/amiga/drag.c (original)
+++ branches/vince/netsurf-options/amiga/drag.c Mon Mar 19 18:38:26 2012
@@ -55,7 +55,7 @@
 void gui_drag_save_object(gui_save_type type, hlcache_handle *c,
 		struct gui_window *g)
 {
-	const char *filetype;
+	const char *filetype = NULL;
 
 	if(strcmp(nsoption_charp(use_pubscreen), "Workbench")) return;
 

Modified: branches/vince/netsurf-options/amiga/dt_sound.c
URL: http://source.netsurf-browser.org/branches/vince/netsurf-options/amiga/dt_sound.c?rev=13537&r1=13536&r2=13537&view=diff
==============================================================================
--- branches/vince/netsurf-options/amiga/dt_sound.c (original)
+++ branches/vince/netsurf-options/amiga/dt_sound.c Mon Mar 19 18:38:26 2012
@@ -149,7 +149,7 @@
 
 	amiga_dt_sound_content *plugin = (amiga_dt_sound_content *) c;
 	union content_msg_data msg_data;
-	int width, height;
+	int width = 50, height = 50;
 	char title[100];
 	const uint8 *data;
 	ULONG size;

Modified: branches/vince/netsurf-options/amiga/gui.c
URL: http://source.netsurf-browser.org/branches/vince/netsurf-options/amiga/gui.c?rev=13537&r1=13536&r2=13537&view=diff
==============================================================================
--- branches/vince/netsurf-options/amiga/gui.c (original)
+++ branches/vince/netsurf-options/amiga/gui.c Mon Mar 19 18:38:26 2012
@@ -3814,8 +3814,6 @@
 	struct nsObject *nnode;
 	struct gui_window_2 *gwin;
 	char fname[100];
-	struct bitmap *nsbm;
-	bool free_bm = false;
 
 	if(IsMinListEmpty(window_list))	return;
 	if(nsoption_bool(kiosk_mode) == true) return;
@@ -3861,8 +3859,6 @@
 			}
 		}
 	} while(node = nnode);
-
-	if(bm && free_bm) bitmap_destroy(nsbm);
 }
 
 static uint32 ami_set_search_ico_render_hook(struct Hook *hook, APTR space,




More information about the netsurf-commits mailing list