mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 01:02:36 +03:00
Fix warnings
This commit is contained in:
parent
42f1e685b3
commit
e0833a7f2e
@ -94,9 +94,7 @@ nserror amiga_dt_anim_init(void)
|
||||
{
|
||||
struct DataType *dt, *prevdt = NULL;
|
||||
lwc_string *type;
|
||||
lwc_error lerror;
|
||||
nserror error;
|
||||
BPTR fh = 0;
|
||||
struct Node *node = NULL;
|
||||
|
||||
while((dt = ObtainDataType(DTST_RAM, NULL,
|
||||
@ -170,15 +168,13 @@ bool amiga_dt_anim_convert(struct content *c)
|
||||
|
||||
data = (uint8 *)content__get_source_data(c, &size);
|
||||
|
||||
if(plugin->dto = NewDTObject(NULL,
|
||||
if((plugin->dto = NewDTObject(NULL,
|
||||
DTA_SourceType, DTST_MEMORY,
|
||||
DTA_SourceAddress, data,
|
||||
DTA_SourceSize, size,
|
||||
DTA_GroupID, GID_ANIMATION,
|
||||
TAG_DONE))
|
||||
{
|
||||
if(GetDTAttrs(plugin->dto, PDTA_BitMapHeader, &bmh, TAG_DONE))
|
||||
{
|
||||
TAG_DONE))) {
|
||||
if(GetDTAttrs(plugin->dto, PDTA_BitMapHeader, &bmh, TAG_DONE)) {
|
||||
width = (int)bmh->bmh_Width;
|
||||
height = (int)bmh->bmh_Height;
|
||||
|
||||
|
@ -68,7 +68,7 @@ static const content_handler amiga_dt_sound_content_handler = {
|
||||
};
|
||||
|
||||
|
||||
void amiga_dt_sound_play(Object *dto)
|
||||
static void amiga_dt_sound_play(Object *dto)
|
||||
{
|
||||
LOG(("Playing..."));
|
||||
IDoMethod(dto, DTM_TRIGGER, NULL, STM_PLAY, NULL);
|
||||
@ -79,9 +79,7 @@ nserror amiga_dt_sound_init(void)
|
||||
{
|
||||
struct DataType *dt, *prevdt = NULL;
|
||||
lwc_string *type;
|
||||
lwc_error lerror;
|
||||
nserror error;
|
||||
BPTR fh = 0;
|
||||
struct Node *node = NULL;
|
||||
|
||||
while((dt = ObtainDataType(DTST_RAM, NULL,
|
||||
|
@ -4760,7 +4760,7 @@ static nserror gui_window_set_url(struct gui_window *g, nsurl *url)
|
||||
{
|
||||
int cur_tab = 0;
|
||||
|
||||
if(!g) return;
|
||||
if(!g) return NSERROR_OK;
|
||||
|
||||
if ((g->tab_node) && (g->shared->tabs > 1)) {
|
||||
GetAttr(CLICKTAB_Current,
|
||||
|
Loading…
Reference in New Issue
Block a user