Silence unused variable warnings

(Android) undefine HAVE_COMPRESSION - gets defined in griffin.c now
This commit is contained in:
twinaphex 2014-09-12 21:41:54 +02:00
parent 49052ee6a8
commit 119a51be76
2 changed files with 7 additions and 3 deletions

View File

@ -55,7 +55,7 @@ else
endif
LOCAL_CFLAGS += -Wall -pthread -Wno-unused-function -fno-stack-protector -funroll-loops -DNDEBUG -DRARCH_MOBILE -DHAVE_GRIFFIN -DANDROID -DHAVE_DYNAMIC -DHAVE_OPENGL -DHAVE_FBO -DHAVE_OVERLAY -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DGLSL_DEBUG -DHAVE_DYLIB -DHAVE_GLSL -DHAVE_MENU -DHAVE_RGUI -DHAVE_ZLIB -DINLINE=inline -DLSB_FIRST -DHAVE_THREADS -D__LIBRETRO__ -DHAVE_RSOUND -DHAVE_NETPLAY -DRARCH_INTERNAL -DHAVE_CC_RESAMPLER -DHAVE_FILTERS_BUILTIN
LOCAL_CFLAGS += -DHAVE_7ZIP -DHAVE_COMPRESSION -D_7ZIP_ST
LOCAL_CFLAGS += -DHAVE_7ZIP -D_7ZIP_ST
LOCAL_CFLAGS += -O2

View File

@ -146,8 +146,12 @@ struct string_list *compressed_zip_file_list_new(const char *path,
size_t bytes_read = -1;
bool finished_reading = false;
unzFile *zipfile = unzOpen( path );
if ( ! zipfile )
unzFile *zipfile = (unzFile*)unzOpen( path );
(void)finished_reading;
(void)bytes_read;
if (!zipfile)
{
RARCH_ERR("Could not open zipfile %s.\n",path);
return NULL;