vp8_decode: declare 2 variables volatile

fixes -Wclobbered warnings with gcc 12.1.0:
vp8/vp8_dx_iface.c|278 col 16| warning: variable 'w' might be clobbered
by 'longjmp' or 'vfork' [-Wclobbered]
vp8/vp8_dx_iface.c|278 col 19| warning: variable 'h' might be clobbered
by 'longjmp' or 'vfork' [-Wclobbered]

Change-Id: Ib2c606a3450188d7869c066cacaf5615d9746181
This commit is contained in:
James Zern
2022-09-07 18:41:13 -07:00
parent a3abfc9874
commit a46ca4b6bd

View File

@@ -275,7 +275,7 @@ static vpx_codec_err_t vp8_decode(vpx_codec_alg_priv_t *ctx,
void *user_priv, long deadline) {
volatile vpx_codec_err_t res;
volatile unsigned int resolution_change = 0;
unsigned int w, h;
volatile unsigned int w, h;
if (!ctx->fragments.enabled && (data == NULL && data_sz == 0)) {
return 0;