Silence 'side effect in assertion' warnings

This commit is contained in:
twinaphex 2016-05-24 21:51:45 +02:00
parent 72d37e3917
commit ec88b464c3
2 changed files with 3 additions and 3 deletions

View File

@ -218,7 +218,7 @@ void menu_display_deinit(void)
bool menu_display_init(void)
{
retro_assert(menu_display_msg_queue = msg_queue_new(8));
retro_assert((menu_display_msg_queue = msg_queue_new(8)) != NULL);
menu_disp_ca.allocated = 0;
return true;
}

View File

@ -141,9 +141,9 @@ static int detect_ps1_game_sub(const char *track_path,
char *game_id, int sub_channel_mixed)
{
uint8_t* tmp;
uint8_t buffer[2048 * 2];
int skip, frame_size, is_mode1, cd_sector;
RFILE *fp = filestream_open(track_path, RFILE_MODE_READ, -1);
uint8_t buffer[2048 * 2] = {0};
RFILE *fp = filestream_open(track_path, RFILE_MODE_READ, -1);
if (!fp)
return 0;