Squash warnings resulting from mismatched type expectations

svn path=/trunk/netsurf/; revision=12701
This commit is contained in:
John Mark Bell 2011-09-02 22:09:23 +00:00
parent f233d41f26
commit 4b189ab0bc
5 changed files with 6 additions and 6 deletions

View File

@ -159,7 +159,7 @@ BOOL ami_context_menu_mouse_trap(struct gui_window_2 *gwin, BOOL trap)
if(gwin->rmbtrapped == trap) return trap;
SetWindowAttr(gwin->win, WA_RMBTrap, trap, 1);
SetWindowAttr(gwin->win, WA_RMBTrap, (APTR)(ULONG)trap, sizeof(BOOL));
gwin->rmbtrapped = trap;
return trap;

View File

@ -204,7 +204,7 @@ bool amiga_dt_anim_convert(struct content *c)
adt_frame.MethodID = ADTM_LOADFRAME;
adt_frame.alf_TimeStamp = 0;
IDoMethodA(plugin->dto, &adt_frame);
IDoMethodA(plugin->dto, (Msg)&adt_frame);
clut = ami_colormap_to_clut(adt_frame.alf_CMap);
@ -222,7 +222,7 @@ bool amiga_dt_anim_convert(struct content *c)
FreeVec(clut);
adt_frame.MethodID = ADTM_UNLOADFRAME;
IDoMethodA(plugin->dto, &adt_frame);
IDoMethodA(plugin->dto, (Msg)&adt_frame);
}
else return false;
}

View File

@ -2131,7 +2131,7 @@ void ami_gui_close_screen(struct Screen *scrn)
ULONG screen_signal = AllocSignal(-1);
ULONG scrnsig = 1 << screen_signal;
SetScreenAttr(scrn, SA_PubSig, screen_signal, sizeof(ULONG));
SetScreenAttr(scrn, SA_PubSig, (APTR)screen_signal, sizeof(ULONG));
if(scrn == NULL)
{

View File

@ -140,7 +140,7 @@ void gui_launch_url(const char *url)
else ami_openurl_add_protocol(url);
}
else if(IOpenURL)
URL_OpenA(url,NULL);
URL_OpenA((STRPTR)url,NULL);
FreeVec(launchurl);
}

View File

@ -358,7 +358,7 @@ void ami_menu_arexx_scan(struct gui_window_2 *gwin)
do
{
cont = ExAll(lock,buffer,1024,ED_COMMENT,ctrl);
cont = ExAll(lock,(struct ExAllData *)buffer,1024,ED_COMMENT,ctrl);
if((!cont) && (IoErr() != ERROR_NO_MORE_ENTRIES)) break;
if(!ctrl->eac_Entries) continue;