fix little C-code problems that trigger clang errors/warnings

This commit is contained in:
Matthew Flatt 2010-08-05 06:25:26 -06:00
parent 80bd5c53b5
commit e9687b5cf6
3 changed files with 4 additions and 5 deletions

View File

@ -12840,7 +12840,6 @@ static Scheme_Object *write_syntax(Scheme_Object *obj)
case scheme_begin0_sequence_type:
break;
default:
*(long *)0x0 = 1;
break;
}
}

View File

@ -13601,10 +13601,10 @@ static void check_stack(void)
if (q == stack_cache_pop_code) {
if (!pos)
*(long *)0x0 = 1;
abort();
else {
if (stack_cache_stack[pos].stack_frame != (void *)(((void **)p) + RETURN_ADDRESS_OFFSET)) {
*(long *)0X0 = 1;
abort();
}
--pos;
}

View File

@ -672,8 +672,8 @@ void wxImage::FloydDitherize1(XImage * /* ximage */)
/* same as FloydDitherize8, but output is a 1-bit per pixel XYBitmap,
packed 8 pixels per byte */
register short *dp;
register byte pix8, bit;
short *dp;
byte pix8, bit;
short *dithpic;
int i, j, err, bperln, order;
byte *pp, *image, w, blck, w8, b8;