From 5c244398e18ed6c9aaef5adcccdb7ec4a90d49b2 Mon Sep 17 00:00:00 2001 From: Johann <johannkoenig@google.com> Date: Tue, 24 Aug 2010 18:23:16 -0400 Subject: [PATCH] clean up compiler warnings did a test compile with clang and got rid of some warnings that have been annoying me for a while: vp8/decoder/detokenize.c: In function 'vp8_init_detokenizer': vp8/decoder/detokenize.c:121: warning: assignment discards qualifiers from pointer target type vp8/decoder/detokenize.c:122: warning: assignment discards qualifiers from pointer target type vp8/decoder/detokenize.c:123: warning: assignment from incompatible pointer type vp8/decoder/detokenize.c:124: warning: assignment discards qualifiers from pointer target type vp8/decoder/detokenize.c:125: warning: assignment discards qualifiers from pointer target type vp8/decoder/detokenize.c:128: warning: assignment discards qualifiers from pointer target type vp8/decoder/detokenize.c:129: warning: assignment discards qualifiers from pointer target type vp8/decoder/detokenize.c:130: warning: assignment discards qualifiers from pointer target type vp8/decoder/detokenize.c:131: warning: assignment discards qualifiers from pointer target type Change-Id: I78ddab176fe47cbeed30379709dc7bab01c0c2e4 --- vp8/decoder/onyxd_int.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/vp8/decoder/onyxd_int.h b/vp8/decoder/onyxd_int.h index c08e0fb75a..2a7a03640d 100644 --- a/vp8/decoder/onyxd_int.h +++ b/vp8/decoder/onyxd_int.h @@ -48,21 +48,20 @@ typedef struct typedef struct { - int *scan; - UINT8 *ptr_onyxblock2context_leftabove; - vp8_tree_index *vp8_coef_tree_ptr; //onyx_coef_tree_ptr; ??? - TOKENEXTRABITS *teb_base_ptr; + int const *scan; + UINT8 const *ptr_onyxblock2context_leftabove; + vp8_tree_index const *vp8_coef_tree_ptr; + TOKENEXTRABITS const *teb_base_ptr; unsigned char *norm_ptr; -// UINT16 *ptr_onyx_coef_bands_x; - UINT8 *ptr_onyx_coef_bands_x; + UINT16 *ptr_onyx_coef_bands_x; - ENTROPY_CONTEXT **A; - ENTROPY_CONTEXT(*L)[4]; + ENTROPY_CONTEXT **A; + ENTROPY_CONTEXT (*L)[4]; INT16 *qcoeff_start_ptr; BOOL_DECODER *current_bc; - UINT8 *coef_probs[4]; + vp8_prob const *coef_probs[4]; UINT8 eob[25]; -- GitLab