Skip to content

Commit

Permalink
minor compiler warnings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iss committed May 18, 2024
1 parent 35160b4 commit 256bf6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ SDL_bool init( struct machine *oric, int argc, char *argv[] )
{
Sint32 i;
struct start_opts *sto;
char opt_type, *opt_arg, *tmp;
char opt_type, *opt_arg = NULL, *tmp;

sto = malloc( sizeof( struct start_opts ) );
if( !sto ) return SDL_FALSE;
Expand Down
2 changes: 2 additions & 0 deletions snapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,12 +759,14 @@ static Uint32 getu32(struct blockheader *blk)
return val;
}

#ifdef WWW_MONITOR
static Sint32 gets32(struct blockheader *blk)
{
Sint32 val = (blk->buf[blk->offs]<<24)|(blk->buf[blk->offs+1]<<16)|(blk->buf[blk->offs+2]<<8)|blk->buf[blk->offs+3];
blk->offs+=4;
return val;
}
#endif

static Uint16 getu16(struct blockheader *blk)
{
Expand Down

0 comments on commit 256bf6a

Please sign in to comment.