Fixed several small bugs; among other things, the emulator now compiles without warnings when using DEBUG=y as well.

This commit is contained in:
OBattler
2017-08-23 17:44:57 +02:00
parent 963459a9ef
commit 2da64b5f55
21 changed files with 53 additions and 54 deletions

View File

@@ -307,7 +307,7 @@ void ati28800_recalctimings(svga_t *svga)
{
ati28800_t *ati28800 = (ati28800_t *)svga->p;
uint8_t clock_sel = (svga->miscout >> 2) & 3;
double freq;
double freq = 0;
#ifndef RELEASE_BUILD
pclog("ati28800_recalctimings\n");

View File

@@ -3044,7 +3044,7 @@ void mach64_overlay_draw(svga_t *svga, int displine)
{
int h = h_acc >> 12;
int gr_cmp = 0, vid_cmp = 0;
int use_video;
int use_video = 0;
switch (video_key_fn)
{

View File

@@ -1418,7 +1418,7 @@ uint8_t s3_accel_read(uint32_t addr, void *p)
void s3_accel_start(int count, int cpu_input, uint32_t mix_dat, uint32_t cpu_dat, s3_t *s3)
{
svga_t *svga = &s3->svga;
uint32_t src_dat, dest_dat;
uint32_t src_dat = 0, dest_dat;
int frgd_mix, bkgd_mix;
int clip_t = s3->accel.multifunc[1] & 0xfff;
int clip_l = s3->accel.multifunc[2] & 0xfff;

View File

@@ -2848,7 +2848,7 @@ static void voodoo_half_triangle(voodoo_t *voodoo, voodoo_params_t *params, vood
// if (voodoo->fbzMode & FBZ_RGB_WMASK)
{
int update = 1;
uint8_t cother_r, cother_g, cother_b, aother;
uint8_t cother_r = 0, cother_g = 0, cother_b = 0, aother;
uint8_t clocal_r, clocal_g, clocal_b, alocal;
int src_r = 0, src_g = 0, src_b = 0, src_a = 0;
int msel_r, msel_g, msel_b, msel_a;

View File

@@ -593,7 +593,7 @@ void wy700_cgaline(wy700_t *wy700)
{
int x, c;
uint32_t dat;
uint8_t ink;
uint8_t ink = 0;
uint16_t addr;
uint16_t ma = (wy700->cga_crtc[13] | (wy700->cga_crtc[12] << 8)) & 0x3fff;
@@ -653,7 +653,7 @@ void wy700_medresline(wy700_t *wy700)
{
int x, c;
uint32_t dat;
uint8_t ink;
uint8_t ink = 0;
uint32_t addr;
addr = (wy700->displine >> 1) * 80 + 4 * wy700->wy700_base;
@@ -711,7 +711,7 @@ void wy700_hiresline(wy700_t *wy700)
{
int x, c;
uint32_t dat;
uint8_t ink;
uint8_t ink = 0;
uint32_t addr;
addr = (wy700->displine >> 1) * 160 + 4 * wy700->wy700_base;