Fix warnings

This commit is contained in:
Chris Young 2014-11-09 01:10:52 +00:00
parent 42f1e685b3
commit e0833a7f2e
3 changed files with 5 additions and 11 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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,