static const int8_t quant5[256]={ ^~~~~~ libavcodec/snow.c:54:21: warning: 'quant3b' defined but not used [-Wunused-const-variable=] static const int8_t quant3b[256]={ ^~~~~~~ libavcodec/snow.c:36:21: warning: 'quant3' defined but not used [-Wunused-const-variable=] static const int8_t quant3[256]={ ^~~~~~ CC libavcodec/sp5xdec.o CC libavcodec/srtdec.o CC libavcodec/sunrast.o CC libavcodec/svq1.o CC libavcodec/svq1dec.o CC libavcodec/svq1enc.o libavcodec/svq1dec.c: In function 'svq1_decode_frame': libavcodec/svq1dec.c:647:21: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] uint32_t *src = (uint32_t *) (buf + 4); ^ libavcodec/svq1enc.c: In function 'svq1_write_header': libavcodec/svq1enc.c:98:29: warning: passing argument 1 of 'ff_match_2uint16' from incompatible pointer type [-Wincompatible-pointer-types] i= ff_match_2uint16(ff_svq1_frame_size_table, FF_ARRAY_ELEMS(ff_svq1_frame_size_table), s->frame_width, s->frame_height); ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from libavcodec/svq1enc.c:34:0: libavcodec/internal.h:49:5: note: expected 'const uint16_t (*)[2] {aka const short unsigned int (*)[2]}' but argument is of type 'const struct svq1_frame_size *' int ff_match_2uint16(const uint16_t (*tab)[2], int size, int a, int b); ^~~~~~~~~~~~~~~~ libavcodec/svq1dec.c: In function 'svq1_decode_block_non_intra': libavcodec/svq1dec.c:150:35: warning: 'entries[5]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:266:15: note: 'entries[5]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c:150:35: warning: 'entries[4]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:266:15: note: 'entries[4]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c:150:35: warning: 'entries[3]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:266:15: note: 'entries[3]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c:150:35: warning: 'entries[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:266:15: note: 'entries[2]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c:150:35: warning: 'entries[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:266:15: note: 'entries[1]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c:150:35: warning: 'entries[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:266:15: note: 'entries[0]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c: In function 'svq1_decode_block_intra': libavcodec/svq1dec.c:150:35: warning: 'entries[5]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:211:15: note: 'entries[5]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c:150:35: warning: 'entries[4]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:211:15: note: 'entries[4]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c:150:35: warning: 'entries[3]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:211:15: note: 'entries[3]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c:150:35: warning: 'entries[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:211:15: note: 'entries[2]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c:150:35: warning: 'entries[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:211:15: note: 'entries[1]' was declared here int entries[6]; ^~~~~~~ libavcodec/svq1dec.c:150:35: warning: 'entries[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] n3 = codebook[entries[j]] ^ 0x80808080;\ ^ libavcodec/svq1dec.c:211:15: note: 'entries[0]' was declared here int entries[6]; ^~~~~~~ CC libavcodec/svq3.o libavcodec/svq3.c: In function 'svq3_mc_dir': libavcodec/svq3.c:413:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(int32_t *) h->mv_cache[dir][scan8[k] + 1*8] = mv; ^ libavcodec/svq3.c:416:25: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(int32_t *) h->mv_cache[dir][scan8[k] + 1 + 1*8] = mv; ^ libavcodec/svq3.c:420:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(int32_t *) h->mv_cache[dir][scan8[k] + 1] = mv; ^ libavcodec/svq3.c:423:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(int32_t *) h->mv_cache[dir][scan8[k]] = mv; ^ libavcodec/svq3.c: In function 'svq3_decode_mb': libavcodec/svq3.c:489:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(uint32_t *) h->mv_cache[m][scan8[0] - 1 + i*8] = *(uint32_t *) s->current_picture.motion_val[m][b_xy - 1 + i*h->b_stride]; ^ libavcodec/svq3.c:493:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(uint32_t *) h->mv_cache[m][scan8[0] - 1 + i*8] = 0; ^ libavcodec/svq3.c:501:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(uint32_t *) h->mv_cache[m][scan8[0] + 4 - 1*8] = *(uint32_t *) s->current_picture.motion_val[m][b_xy - h->b_stride + 4]; ^ libavcodec/svq3.c:508:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(uint32_t *) h->mv_cache[m][scan8[0] - 1 - 1*8] = *(uint32_t *) s->current_picture.motion_val[m][b_xy - h->b_stride - 1]; ^ libavcodec/svq3.c:660:39: warning: passing argument 2 of 'svq3_decode_block' from incompatible pointer type [-Wincompatible-pointer-types] if (svq3_decode_block(&s->gb, h->mb_luma_dc, 0, 1)){ ^ libavcodec/svq3.c:209:19: note: expected 'DCTELEM * {aka short int *}' but argument is of type 'DCTELEM (*)[32] {aka short int (*)[32]}' static inline int svq3_decode_block(GetBitContext *gb, DCTELEM *block, ^~~~~~~~~~~~~~~~~ In file included from libavcodec/dsputil.h:33:0, from libavcodec/svq3.c:43: libavcodec/svq3.c: In function 'svq3_decode_slice_header': ./libavutil/intreadwrite.h:193:30: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] # define AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (v)) ^ ./libavutil/intreadwrite.h:338:26: note: in expansion of macro 'AV_WN' # define AV_WN32(p, v) AV_WN(32, p, v) ^~~~~ ./libavutil/intreadwrite.h:354:27: note: in expansion of macro 'AV_WN32' # define AV_WL(s, p, v) AV_WN##s(p, v) ^~~~~ ./libavutil/intreadwrite.h:388:26: note: in expansion of macro 'AV_WL' # define AV_WL32(p, v) AV_WL(32, p, v) ^~~~~ libavcodec/svq3.c:747:13: note: in expansion of macro 'AV_WL32' AV_WL32(&s->gb.buffer[(get_bits_count(&s->gb)>>3)+1], header ^ svq3->watermark_key); ^~~~~~~ libavcodec/svq3.c:750:20: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] memcpy((uint8_t *) &s->gb.buffer[get_bits_count(&s->gb) >> 3], ^ CC libavcodec/synth_filter.o CC libavcodec/targa.o CC libavcodec/targaenc.o CC libavcodec/tiertexseqv.o CC libavcodec/tiff.o libavcodec/tiff.c: In function 'tiff_uncompress': libavcodec/tiff.c:89:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] zstream.next_in = src; ^ CC libavcodec/tiffenc.o CC libavcodec/tmv.o CC libavcodec/truemotion1.o CC libavcodec/truemotion2.o CC libavcodec/truespeech.o CC libavcodec/tscc.o libavcodec/tscc.c: In function 'decode_frame': libavcodec/tscc.c:96:24: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] c->zstream.next_in = encoded; ^ CC libavcodec/tta.o CC libavcodec/twinvq.o CC libavcodec/txd.o CC libavcodec/ulti.o CC libavcodec/utils.o libavcodec/utils.c: In function 'avcodec_open': libavcodec/utils.c:500:41: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] *(AVClass**)avctx->priv_data= codec->priv_class; ^ libavcodec/utils.c: In function 'avcodec_encode_audio': libavcodec/utils.c:633:62: warning: passing argument 4 of 'avctx->codec->encode' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] int ret = avctx->codec->encode(avctx, buf, buf_size, samples); ^~~~~~~ libavcodec/utils.c:633:62: note: expected 'void *' but argument is of type 'const short int *' libavcodec/utils.c: In function 'avcodec_encode_video': libavcodec/utils.c:650:62: warning: passing argument 4 of 'avctx->codec->encode' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] int ret = avctx->codec->encode(avctx, buf, buf_size, pict); ^~~~ libavcodec/utils.c:650:62: note: expected 'void *' but argument is of type 'const AVFrame * {aka const struct AVFrame *}' libavcodec/utils.c: In function 'avcodec_encode_subtitle': libavcodec/utils.c:669:54: warning: passing argument 4 of 'avctx->codec->encode' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ret = avctx->codec->encode(avctx, buf, buf_size, sub); ^~~ libavcodec/utils.c:669:54: note: expected 'void *' but argument is of type 'const AVSubtitle * {aka const struct AVSubtitle *}' libavcodec/utils.c: In function 'av_get_bits_per_sample_format': libavcodec/utils.c:1138:5: warning: 'av_get_bits_per_sample_fmt' is deprecated [-Wdeprecated-declarations] return av_get_bits_per_sample_fmt(sample_fmt); ^~~~~~ In file included from libavcodec/utils.c:34:0: ./libavutil/samplefmt.h:68:5: note: declared here int av_get_bits_per_sample_fmt(enum AVSampleFormat sample_fmt); ^~~~~~~~~~~~~~~~~~~~~~~~~~ CC libavcodec/v210dec.o libavcodec/v210dec.c: In function 'decode_frame': libavcodec/v210dec.c:94:25: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized] *y++ = (val >> 14) & 0xFFC0; ~~~~~^~~~~~ CC libavcodec/v210enc.o libavcodec/v210enc.c: In function 'encode_frame': libavcodec/v210enc.c:93:17: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized] val |=((*u++ & 0xFFC0) << 4) | ^~ CC libavcodec/v210x.o CC libavcodec/vb.o CC libavcodec/vc1.o CC libavcodec/vc1_parser.o CC libavcodec/vc1data.o CC libavcodec/vc1dec.o libavcodec/vc1dec.c:48:23: warning: 'table_mb_intra' defined but not used [-Wunused-const-variable=] static const uint16_t table_mb_intra[64][2]; ^~~~~~~~~~~~~~ CC libavcodec/vc1dsp.o libavcodec/vc1dsp.c: In function 'ff_vc1dsp_init': libavcodec/vc1dsp.c:736:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] dsp->put_vc1_mspel_pixels_tab[ 0] = ff_put_pixels8x8_c; ^ libavcodec/vc1dsp.c:753:39: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] dsp->avg_vc1_mspel_pixels_tab[ 0] = ff_avg_pixels8x8_c; ^ CC libavcodec/vcr1.o CC libavcodec/vmdav.o libavcodec/vmdav.c: In function 'vmdaudio_decode_init': libavcodec/vmdav.c:450:5: warning: 'av_get_bits_per_sample_fmt' is deprecated [-Wdeprecated-declarations] s->out_bps = av_get_bits_per_sample_fmt(avctx->sample_fmt) >> 3; ^ In file included from libavcodec/avcodec.h:30:0, from libavcodec/vmdav.c:47: ./libavutil/samplefmt.h:68:5: note: declared here int av_get_bits_per_sample_fmt(enum AVSampleFormat sample_fmt); ^~~~~~~~~~~~~~~~~~~~~~~~~~ CC libavcodec/vmnc.o CC libavcodec/vorbis.o CC libavcodec/vorbis_data.o CC libavcodec/vorbisdec.o libavcodec/vorbisdec.c: In function 'vorbis_decode_frame': libavcodec/vorbisdec.c:1649:18: warning: 'av_get_bits_per_sample_fmt' is deprecated [-Wdeprecated-declarations] (av_get_bits_per_sample_fmt(avccontext->sample_fmt) / 8); ^ In file included from libavcodec/avcodec.h:30:0, from libavcodec/vorbisdec.c:27: ./libavutil/samplefmt.h:68:5: note: declared here int av_get_bits_per_sample_fmt(enum AVSampleFormat sample_fmt); ^~~~~~~~~~~~~~~~~~~~~~~~~~ CC libavcodec/vorbisenc.o CC libavcodec/vp3.o libavcodec/vp3.c: In function 'unpack_superblocks': libavcodec/vp3.c:387:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ libavcodec/vp3.c:390:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' current_run = get_vlc2(gb, ^~~~~~~~~~~ CC libavcodec/vp3_parser.o CC libavcodec/vp3dsp.o CC libavcodec/vp5.o CC libavcodec/vp56.o CC libavcodec/vp56data.o CC libavcodec/vp56dsp.o CC libavcodec/vp56rac.o CC libavcodec/vp6.o CC libavcodec/vp6dsp.o CC libavcodec/vp8.o CC libavcodec/vp8_parser.o CC libavcodec/vp8dsp.o CC libavcodec/vqavideo.o CC libavcodec/wavpack.o CC libavcodec/wma.o CC libavcodec/wmadec.o CC libavcodec/wmaenc.o CC libavcodec/wmaprodec.o CC libavcodec/wmavoice.o libavcodec/wmaprodec.c: In function 'decode_frame': libavcodec/wmaprodec.c:558:16: warning: 'contains_subframe[7]' may be used uninitialized in this function [-Wmaybe-uninitialized] if (contains_subframe[c]) { ^ libavcodec/wmaprodec.c:512:14: note: 'contains_subframe[7]' was declared here uint8_t contains_subframe[WMAPRO_MAX_CHANNELS]; /**< flag indicating if a channel contains the current subframe */ ^~~~~~~~~~~~~~~~~ libavcodec/wmaprodec.c:558:16: warning: 'contains_subframe[6]' may be used uninitialized in this function [-Wmaybe-uninitialized] if (contains_subframe[c]) { ^ libavcodec/wmaprodec.c:512:14: note: 'contains_subframe[6]' was declared here uint8_t contains_subframe[WMAPRO_MAX_CHANNELS]; /**< flag indicating if a channel contains the current subframe */ ^~~~~~~~~~~~~~~~~ libavcodec/wmaprodec.c:558:16: warning: 'contains_subframe[5]' may be used uninitialized in this function [-Wmaybe-uninitialized] if (contains_subframe[c]) { ^ libavcodec/wmaprodec.c:512:14: note: 'contains_subframe[5]' was declared here uint8_t contains_subframe[WMAPRO_MAX_CHANNELS]; /**< flag indicating if a channel contains the current subframe */ ^~~~~~~~~~~~~~~~~ libavcodec/wmaprodec.c:558:16: warning: 'contains_subframe[4]' may be used uninitialized in this function [-Wmaybe-uninitialized] if (contains_subframe[c]) { ^ libavcodec/wmaprodec.c:512:14: note: 'contains_subframe[4]' was declared here uint8_t contains_subframe[WMAPRO_MAX_CHANNELS]; /**< flag indicating if a channel contains the current subframe */ ^~~~~~~~~~~~~~~~~ libavcodec/wmaprodec.c:558:16: warning: 'contains_subframe[3]' may be used uninitialized in this function [-Wmaybe-uninitialized] if (contains_subframe[c]) { ^ libavcodec/wmaprodec.c:512:14: note: 'contains_subframe[3]' was declared here uint8_t contains_subframe[WMAPRO_MAX_CHANNELS]; /**< flag indicating if a channel contains the current subframe */ ^~~~~~~~~~~~~~~~~ libavcodec/wmaprodec.c:558:16: warning: 'contains_subframe[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] if (contains_subframe[c]) { ^ libavcodec/wmaprodec.c:512:14: note: 'contains_subframe[2]' was declared here uint8_t contains_subframe[WMAPRO_MAX_CHANNELS]; /**< flag indicating if a channel contains the current subframe */ ^~~~~~~~~~~~~~~~~ libavcodec/wmaprodec.c:558:16: warning: 'contains_subframe[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] if (contains_subframe[c]) { ^ libavcodec/wmaprodec.c:512:14: note: 'contains_subframe[1]' was declared here uint8_t contains_subframe[WMAPRO_MAX_CHANNELS]; /**< flag indicating if a channel contains the current subframe */ ^~~~~~~~~~~~~~~~~ libavcodec/wmaprodec.c:558:16: warning: 'contains_subframe[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] if (contains_subframe[c]) { ^ libavcodec/wmaprodec.c:512:14: note: 'contains_subframe[0]' was declared here uint8_t contains_subframe[WMAPRO_MAX_CHANNELS]; /**< flag indicating if a channel contains the current subframe */ ^~~~~~~~~~~~~~~~~ libavcodec/wmavoice.c: In function 'postfilter.constprop': libavcodec/wmavoice.c:517:9: warning: 'best_hist_ptr' may be used uninitialized in this function [-Wmaybe-uninitialized] dot = ff_dot_productf(best_hist_ptr, best_hist_ptr, size); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libavcodec/wmavoice.c:504:18: note: 'best_hist_ptr' was declared here *best_hist_ptr; ^~~~~~~~~~~~~ libavcodec/wmavoice.c: In function 'synth_superframe': libavcodec/wmavoice.c:1572:27: warning: 'cur_pitch_val' may be used uninitialized in this function [-Wmaybe-uninitialized] s->last_pitch_val = cur_pitch_val; ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ libavcodec/wmavoice.c:1425:42: note: 'cur_pitch_val' was declared here int n, n_blocks_x2, log_n_blocks_x2, cur_pitch_val; ^~~~~~~~~~~~~ CC libavcodec/wmv2.o CC libavcodec/wmv2dec.o CC libavcodec/wmv2enc.o CC libavcodec/wnv1.o CC libavcodec/ws-snd1.o CC libavcodec/xan.o CC libavcodec/xiph.o CC libavcodec/xl.o CC libavcodec/xsubdec.o CC libavcodec/xsubenc.o CC libavcodec/xxan.o CC libavcodec/yop.o CC libavcodec/zmbv.o libavcodec/zmbv.c: In function 'decode_frame': libavcodec/zmbv.c:494:28: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] c->zstream.next_in = buf; ^ CC libavcodec/zmbvenc.o CC libswscale/options.o CC libswscale/rgb2rgb.o CC libswscale/swscale.o CC libswscale/swscale_unscaled.o libswscale/swscale_unscaled.c: In function 'sws_scale': libswscale/swscale_unscaled.c:747:31: warning: passing argument 1 of 'check_image_pointers' from incompatible pointer type [-Wincompatible-pointer-types] if (!check_image_pointers(src, c->srcFormat, srcStride)) { ^~~ libswscale/swscale_unscaled.c:717:12: note: expected 'uint8_t ** {aka unsigned char **}' but argument is of type 'const uint8_t * const* {aka const unsigned char * const*}' static int check_image_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, ^~~~~~~~~~~~~~~~~~~~ libswscale/swscale_unscaled.c:751:31: warning: passing argument 1 of 'check_image_pointers' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (!check_image_pointers(dst, c->dstFormat, dstStride)) { ^~~ libswscale/swscale_unscaled.c:717:12: note: expected 'uint8_t ** {aka unsigned char **}' but argument is of type 'uint8_t * const* {aka unsigned char * const*}' static int check_image_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, ^~~~~~~~~~~~~~~~~~~~ libswscale/swscale_unscaled.c:833:19: warning: to be safe all intermediate pointers in cast from 'uint8_t ** {aka unsigned char **}' to 'const uint8_t ** {aka const unsigned char **}' must be 'const' qualified [-Wcast-qual] reset_ptr((const uint8_t**)dst2, c->dstFormat); ^ libswscale/swscale_unscaled.c:856:19: warning: to be safe all intermediate pointers in cast from 'uint8_t ** {aka unsigned char **}' to 'const uint8_t ** {aka const unsigned char **}' must be 'const' qualified [-Wcast-qual] reset_ptr((const uint8_t**)dst2, c->dstFormat); ^ libswscale/swscale.c: In function 'swScale': libswscale/swscale.c:2214:40: warning: to be safe all intermediate pointers in cast from 'int16_t ** {aka short int **}' to 'const int16_t ** {aka const short int **}' must be 'const' qualified [-Wcast-qual] const int16_t **lumSrcPtr= (const int16_t **) lumPixBuf + lumBufIndex + firstLumSrcY - lastInLumBuf + vLumBufSize; ^ libswscale/swscale.c:2215:41: warning: to be safe all intermediate pointers in cast from 'int16_t ** {aka short int **}' to 'const int16_t ** {aka const short int **}' must be 'const' qualified [-Wcast-qual] const int16_t **chrUSrcPtr= (const int16_t **) chrUPixBuf + chrBufIndex + firstChrSrcY - lastInChrBuf + vChrBufSize; ^ libswscale/swscale.c:2216:41: warning: to be safe all intermediate pointers in cast from 'int16_t ** {aka short int **}' to 'const int16_t ** {aka const short int **}' must be 'const' qualified [-Wcast-qual] const int16_t **chrVSrcPtr= (const int16_t **) chrVPixBuf + chrBufIndex + firstChrSrcY - lastInChrBuf + vChrBufSize; ^ libswscale/swscale.c:2217:78: warning: to be safe all intermediate pointers in cast from 'int16_t ** {aka short int **}' to 'const int16_t ** {aka const short int **}' must be 'const' qualified [-Wcast-qual] const int16_t **alpSrcPtr= (CONFIG_SWSCALE_ALPHA && alpPixBuf) ? (const int16_t **) alpPixBuf + lumBufIndex + firstLumSrcY - lastInLumBuf + vLumBufSize : NULL; ^ At top level: libswscale/swscale.c:83:21: warning: 'rgb2yuv_table' defined but not used [-Wunused-const-variable=] static const double rgb2yuv_table[8][9]={ ^~~~~~~~~~~~~ CC libswscale/utils.o CC libswscale/yuv2rgb.o CC libavutil/adler32.o CC libavutil/aes.o libavutil/aes.c: In function 'av_aes_init': libavutil/aes.c:160:22: warning: passing argument 1 of 'init_multbl2' from incompatible pointer type [-Wincompatible-pointer-types] init_multbl2(dec_multbl[0], (const int[4]){0xe, 0x9, 0xd, 0xb}, log8, alog8, inv_sbox); ^~~~~~~~~~ libavutil/aes.c:122:13: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'uint32_t * {aka unsigned int *}' static void init_multbl2(uint8_t tbl[1024], const int c[4], const uint8_t *log8, const uint8_t *alog8, const uint8_t *sbox){ ^~~~~~~~~~~~ libavutil/aes.c:161:22: warning: passing argument 1 of 'init_multbl2' from incompatible pointer type [-Wincompatible-pointer-types] init_multbl2(enc_multbl[0], (const int[4]){0x2, 0x1, 0x1, 0x3}, log8, alog8, sbox); ^~~~~~~~~~ libavutil/aes.c:122:13: note: expected 'uint8_t * {aka unsigned char *}' but argument is of type 'uint32_t * {aka unsigned int *}' static void init_multbl2(uint8_t tbl[1024], const int c[4], const uint8_t *log8, const uint8_t *alog8, const uint8_t *sbox){ ^~~~~~~~~~~~ CC libavutil/audioconvert.o CC libavutil/avstring.o libavutil/avstring.c: In function 'av_stristr': libavutil/avstring.c:54:16: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return s1; ^~ libavutil/avstring.c:58:20: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return s1; ^~ CC libavutil/base64.o CC libavutil/cpu.o CC libavutil/crc.o CC libavutil/des.o libavutil/des.c:43:22: warning: 'P_shuffle' defined but not used [-Wunused-const-variable=] static const uint8_t P_shuffle[] = { ^~~~~~~~~ libswscale/yuv2rgb.c: In function 'ff_yuv2rgb_c_init_tables': libswscale/yuv2rgb.c:792:66: warning: 'abase' may be used uninitialized in this function [-Wmaybe-uninitialized] y_table32[i ] = (yval << rbase) + (needAlpha ? 0 : (255 << abase)); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ CC libavutil/dict.o libavutil/dict.c: In function 'av_dict_set': libavutil/dict.c:78:37: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] m->elems[m->count].key = key; ^ libavutil/dict.c:82:38: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] m->elems[m->count].value = value; ^ CC libavutil/error.o CC libavutil/eval.o CC libavutil/fifo.o CC libavutil/file.o CC libavutil/imgutils.o CC libavutil/intfloat_readwrite.o CC libavutil/inverse.o CC libavutil/lfg.o CC libavutil/lls.o CC libavutil/log.o CC libavutil/lzo.o CC libavutil/mathematics.o CC libavutil/md5.o CC libavutil/mem.o CC libavutil/opt.o libavutil/opt.c: In function 'av_opt_flag_is_set': libavutil/opt.c:328:5: warning: 'av_find_opt' is deprecated [-Wdeprecated-declarations] const AVOption *field = av_find_opt(obj, field_name, NULL, 0, 0); ^~~~~ libavutil/opt.c:36:17: note: declared here const AVOption *av_find_opt(void *v, const char *name, const char *unit, int mask, int flags) ^~~~~~~~~~~ libavutil/opt.c:329:5: warning: 'av_find_opt' is deprecated [-Wdeprecated-declarations] const AVOption *flag = av_find_opt(obj, flag_name, NULL, 0, 0); ^~~~~ libavutil/opt.c:36:17: note: declared here const AVOption *av_find_opt(void *v, const char *name, const char *unit, int mask, int flags) ^~~~~~~~~~~ CC libavutil/parseutils.o libavutil/parseutils.c: In function 'av_parse_video_size': libavutil/parseutils.c:110:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p = str; ^ libavutil/parseutils.c: In function 'av_parse_time': libavutil/parseutils.c:567:35: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] dt.tm_sec = strtol(p, (char **)&q, 10); ^ CC libavutil/pixdesc.o CC libavutil/random_seed.o CC libavutil/rational.o CC libavutil/rc4.o CC libavutil/samplefmt.o CC libavutil/sha.o CC libavutil/tree.o CC libavutil/utils.o AR libavdevice/libavdevice.a AR libavformat/libavformat.a AR libavcodec/libavcodec.a AR libswscale/libswscale.a AR libavutil/libavutil.a