Skip to content

Commit 256bf6a

Browse files
author
iss
committed
minor compiler warnings fix
1 parent 35160b4 commit 256bf6a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ SDL_bool init( struct machine *oric, int argc, char *argv[] )
766766
{
767767
Sint32 i;
768768
struct start_opts *sto;
769-
char opt_type, *opt_arg, *tmp;
769+
char opt_type, *opt_arg = NULL, *tmp;
770770

771771
sto = malloc( sizeof( struct start_opts ) );
772772
if( !sto ) return SDL_FALSE;

snapshot.c

+2
Original file line numberDiff line numberDiff line change
@@ -759,12 +759,14 @@ static Uint32 getu32(struct blockheader *blk)
759759
return val;
760760
}
761761

762+
#ifdef WWW_MONITOR
762763
static Sint32 gets32(struct blockheader *blk)
763764
{
764765
Sint32 val = (blk->buf[blk->offs]<<24)|(blk->buf[blk->offs+1]<<16)|(blk->buf[blk->offs+2]<<8)|blk->buf[blk->offs+3];
765766
blk->offs+=4;
766767
return val;
767768
}
769+
#endif
768770

769771
static Uint16 getu16(struct blockheader *blk)
770772
{

0 commit comments

Comments
 (0)