g++ forbis goto across variable declarations.
This was SVN commit r2796.
This commit is contained in:
parent
788becefc8
commit
3ded398729
@ -544,14 +544,17 @@ int tex_write(const char* fn, uint w, uint h, uint bpp, uint flags, void* in_img
|
||||
CHECK_ERR(tex_codec_for_filename(fn, &c));
|
||||
|
||||
// encode
|
||||
int err = c->encode(&t, &da);
|
||||
int err;
|
||||
size_t rounded_size;
|
||||
|
||||
err = c->encode(&t, &da);
|
||||
if(err < 0)
|
||||
{
|
||||
debug_printf("tex_write (%s): %d", c->name, err);
|
||||
debug_warn("tex_writefailed");
|
||||
goto fail;
|
||||
}
|
||||
const size_t rounded_size = round_up(da.cur_size, FILE_BLOCK_SIZE);
|
||||
rounded_size = round_up(da.cur_size, FILE_BLOCK_SIZE);
|
||||
CHECK_ERR(da_set_size(&da, rounded_size));
|
||||
WARN_ERR(vfs_store(fn, da.base, da.pos));
|
||||
err = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user