From fbba31e24180e3d45885df062d35c3ad6b8e00ce Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 20 Jun 2017 18:34:13 -0700 Subject: [PATCH] vp8_dx_iface: clear -Wclobbered warnings with gcc 6.x Change-Id: Ib2070421603a6777892d4ea01f4b0921696f38b3 --- vp8/vp8_dx_iface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vp8/vp8_dx_iface.c b/vp8/vp8_dx_iface.c index 9ea9c7f04..8ed0f40e6 100644 --- a/vp8/vp8_dx_iface.c +++ b/vp8/vp8_dx_iface.c @@ -228,7 +228,8 @@ static void yuvconfig2image(vpx_image_t *img, const YV12_BUFFER_CONFIG *yv12, } static int update_fragments(vpx_codec_alg_priv_t *ctx, const uint8_t *data, - unsigned int data_sz, vpx_codec_err_t *res) { + unsigned int data_sz, + volatile vpx_codec_err_t *res) { *res = VPX_CODEC_OK; if (ctx->fragments.count == 0) { @@ -267,7 +268,7 @@ static int update_fragments(vpx_codec_alg_priv_t *ctx, const uint8_t *data, static vpx_codec_err_t vp8_decode(vpx_codec_alg_priv_t *ctx, const uint8_t *data, unsigned int data_sz, void *user_priv, long deadline) { - vpx_codec_err_t res = VPX_CODEC_OK; + volatile vpx_codec_err_t res; unsigned int resolution_change = 0; unsigned int w, h;