Silence some warnings

This commit is contained in:
retro-wertz 2018-06-14 23:06:11 +08:00 committed by Rafael Kitover
parent 4d4819f055
commit 3385be2578
4 changed files with 5 additions and 5 deletions

View File

@ -57,9 +57,9 @@ class Gb_Env : public Gb_Osc
Gb_Env() : env_enabled(false), env_delay(0)
{
}
bool env_enabled;
int env_delay;
int volume;
bool env_enabled;
void clock_envelope();
bool write_register(int frame_phase, int reg, int old_data, int data);

View File

@ -145,7 +145,7 @@ extern const char *preparedCheatCodes[MAX_CHEATS];
// allow up to 100 IPS/UPS/PPF patches given on commandline
#define PATCH_MAX_NUM 100
extern int patchNum;
extern char *(patchNames[PATCH_MAX_NUM]); // and so on
extern char *patchNames[PATCH_MAX_NUM]; // and so on
extern int mouseCounter;

View File

@ -137,7 +137,7 @@ static bool utilIsImage(const char* file)
IMAGE_TYPE utilFindType(const char* file)
{
char buffer[2048];
//char buffer[2048];
if (!utilIsImage(file)) // TODO: utilIsArchive() instead?
{
return IMAGE_UNKNOWN;
@ -156,7 +156,7 @@ static int utilGetSize(int size)
uint8_t *utilLoad(const char *file, bool (*accept)(const char *), uint8_t *data, int &size)
{
FILE *fp = NULL;
char *buf = NULL;
//char *buf = NULL;
fp = fopen(file,"rb");
if(!fp) return NULL;

View File

@ -587,7 +587,7 @@ static void update_variables(void)
layerEnable = DISPCNT & layerSettings;
CPUUpdateRenderBuffers(false);
unsigned sound_enabled = 0x30F;
int sound_enabled = 0x30F;
strcpy(key, "vbam_sound_x");
for (unsigned i = 0; i < 6; i++)
{