Skip to content

Commit

Permalink
A few compiler warning fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 1, 2012
1 parent 1ad762b commit 4b081d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions fileio.c
Expand Up @@ -541,13 +541,11 @@ static int64 MojoInput_xz_read(MojoInput *io, void *buf, uint32 bufsize)
const uint32 before = info->stream.total_out;
lzma_ret rc;

lzma_action action = LZMA_FINISH;
if (info->stream.avail_in == 0)
{
int64 br = origio->length(origio) - origio->tell(origio);
if (br > 0)
{
action = LZMA_RUN;
if (br > XZ_READBUFSIZE)
br = XZ_READBUFSIZE;

Expand Down
5 changes: 3 additions & 2 deletions platform_unix.c
Expand Up @@ -955,8 +955,9 @@ void *MojoPlatform_dlopen(const uint8 *img, size_t len)
void *retval = NULL;
int i = 0;

if (dlopen == NULL) // weak symbol on older Mac OS X
return NULL;
#if PLATFORM_MACOSX
if (dlopen == NULL) return NULL; // weak symbol on older Mac OS X
#endif

#ifndef P_tmpdir // glibc defines this, maybe others.
#define P_tmpdir NULL
Expand Down

0 comments on commit 4b081d8

Please sign in to comment.