Fixed compiler warnings (and suppressed write-strings related ones)

This commit is contained in:
Dimitris Panokostas 2017-04-05 00:26:08 +02:00
parent ef51b5eec6
commit 0b6fc80b20
9 changed files with 68 additions and 165 deletions

View file

@ -45,16 +45,8 @@
#include "comptbl.h"
#include "compemu.h"
#include "SDL.h"
#define DEBUG 0
#include "debug.h"
#if DEBUG
#define PROFILE_COMPILE_TIME 1
#define PROFILE_UNTRANSLATED_INSNS 1
#define bug printf
#endif
#ifdef JIT_DEBUG
#undef abort
#define abort() do { \
@ -65,26 +57,6 @@
} while (0)
#endif
#ifdef PROFILE_COMPILE_TIME
#include <time.h>
static uae_u32 compile_count = 0;
static clock_t compile_time = 0;
static clock_t emul_start_time = 0;
static clock_t emul_end_time = 0;
#endif
#ifdef PROFILE_UNTRANSLATED_INSNS
static int untranslated_top_ten = 30;
static uae_u32 raw_cputbl_count[65536] = { 0, };
static uae_u16 opcode_nums[65536];
static int untranslated_compfn(const void *e1, const void *e2)
{
return raw_cputbl_count[*(const uae_u16 *)e1] < raw_cputbl_count[*(const uae_u16 *)e2];
}
#endif
#define NATMEM_OFFSETX (uae_u32)natmem_offset
// %%% BRIAN KING WAS HERE %%%