OSDN Git Service

Include missing do in do/while macro
authorVictor Toso <me@victortoso.com>
Tue, 19 Dec 2017 09:05:10 +0000 (10:05 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 10 Jan 2018 01:12:43 +0000 (09:12 +0800)
i965_encoder_vp8.c:1895:123: note: put the semicolon on a separate line
                             to silence this warning
i965_encoder_vp8.c:1898:112: warning: while loop has empty body

> ALLOC_VP8_RESOURCE_BUFFER(pak_mpu_tpu_picture_state_buffer,
>                           VP8_PICTURE_STATE_SIZE,
>                           "Picture state buffer");

Signed-off-by: Victor Toso <victortoso@redhat.com>
src/i965_encoder_vp8.c

index 061745c..7b745bf 100644 (file)
@@ -1731,7 +1731,8 @@ i965_encoder_vp8_vme_init_mpu_tpu_buffer(VADriverContextP ctx,
     i965_unmap_gpe_resource(&vp8_context->pak_mpu_tpu_updated_token_probability_buffer);
 }
 
-#define ALLOC_VP8_RESOURCE_BUFFER(buffer, bufsize, des) {       \
+#define ALLOC_VP8_RESOURCE_BUFFER(buffer, bufsize, des)         \
+    do {                                                        \
         vp8_context->buffer.type = I965_GPE_RESOURCE_BUFFER;    \
         vp8_context->buffer.width = (bufsize);                  \
         vp8_context->buffer.height = 1;                         \