diff options
author | James Zern <jzern@google.com> | 2021-12-02 13:11:56 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2021-12-02 16:53:20 -0800 |
commit | 31b954debe62026f957e9a13354c8c75b12e537a (patch) | |
tree | e803b50c646bf50f23f7c3b863d08375739c2ae0 /vp8/common | |
parent | 13f984c2162d8392d3fd0ffb8666ee518f60665a (diff) | |
download | libvpx-31b954debe62026f957e9a13354c8c75b12e537a.tar libvpx-31b954debe62026f957e9a13354c8c75b12e537a.tar.gz libvpx-31b954debe62026f957e9a13354c8c75b12e537a.tar.bz2 libvpx-31b954debe62026f957e9a13354c8c75b12e537a.zip |
clear -Wextra-semi/-Wextra-semi-stmt warnings
Bug: chromium:1257449
Change-Id: Ia9aafccc09b611521d4a7aedfe3723393a840c62
Diffstat (limited to 'vp8/common')
-rw-r--r-- | vp8/common/blockd.h | 2 | ||||
-rw-r--r-- | vp8/common/common.h | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/vp8/common/blockd.h b/vp8/common/blockd.h index 02abe053c..405443449 100644 --- a/vp8/common/blockd.h +++ b/vp8/common/blockd.h @@ -58,7 +58,7 @@ typedef struct { extern const unsigned char vp8_block2left[25]; extern const unsigned char vp8_block2above[25]; -#define VP8_COMBINEENTROPYCONTEXTS(Dest, A, B) Dest = (A) + (B); +#define VP8_COMBINEENTROPYCONTEXTS(Dest, A, B) Dest = (A) + (B) typedef enum { KEY_FRAME = 0, INTER_FRAME = 1 } FRAME_TYPE; diff --git a/vp8/common/common.h b/vp8/common/common.h index 2c30e8d6c..562569f9a 100644 --- a/vp8/common/common.h +++ b/vp8/common/common.h @@ -24,22 +24,22 @@ extern "C" { /* Only need this for fixed-size arrays, for structs just assign. */ #define vp8_copy(Dest, Src) \ - { \ + do { \ assert(sizeof(Dest) == sizeof(Src)); \ memcpy(Dest, Src, sizeof(Src)); \ - } + } while (0) /* Use this for variably-sized arrays. */ #define vp8_copy_array(Dest, Src, N) \ - { \ + do { \ assert(sizeof(*(Dest)) == sizeof(*(Src))); \ memcpy(Dest, Src, (N) * sizeof(*(Src))); \ - } + } while (0) -#define vp8_zero(Dest) memset(&(Dest), 0, sizeof(Dest)); +#define vp8_zero(Dest) memset(&(Dest), 0, sizeof(Dest)) -#define vp8_zero_array(Dest, N) memset(Dest, 0, (N) * sizeof(*(Dest))); +#define vp8_zero_array(Dest, N) memset(Dest, 0, (N) * sizeof(*(Dest))) #ifdef __cplusplus } // extern "C" |