[MPlayer-dev-eng] [PATCH] Fix "initialization discards qualifiers" warnings in cfg-*.h

Clément Bœsch ubitux at gmail.com
Sat Sep 11 15:47:53 CEST 2010


On Sat, Sep 11, 2010 at 01:57:19PM +0200, Clément Bœsch wrote:
> > > Well in fact I didn't realized what exactly the problem was. As I
> > > understand it now, this is happening:
> > > 
> > >    const int a[10];     void *p = a     // MPlayer case, warning
> > >    int a[10];           void *p = a     // no warning
> > >    const int a[10];     void *p = &a    // no warning
> > 
> > If that's the case that AFAICT is a compiler bug.
> > 
> > > Since the void *p has to accept const and non-const values (in MPlayer
> > > design), their is no way to change it.
> > 
> > There is no reason you would _have_ to use the same void *.
> > You could have another (const) pointer in the struct just for the
> > suboptions.
> > I don't know how many other changes that might need though.
> 
> In fact I think I have something better: just setting the void *p to const
> works (gcc, clang), no warning are emitted, and binaries don't change.
> 
> There is a second entry with the same issue (void *priv), so the patch I
> attached also change this.
> 
> What do you think of this workaround?

The previous patch fixes the cfg-*.h warnings, but creates a few other in
the config parser. So here is a new patch adding fixing the related
constness issues in parser.

I also attached a diff of the warnings between the two versions (with and
without the patch).

Regards,

-- 
Clément B.
-------------- next part --------------
Index: m_option.h
===================================================================
--- m_option.h	(revision 32153)
+++ m_option.h	(working copy)
@@ -280,7 +280,7 @@
    *  use the priv field but this was inherited from older versions of the
    *  config code.
    */
-  void *p;
+  const void *p;
 
   /// Option type.
   const m_option_type_t* type;
@@ -301,7 +301,7 @@
    *  Now it can be used to pass any type of extra args needed by the parser.
    *  Passing a 'default func' is still valid for all func based option types.
    */
-  void* priv;
+  const void* priv;
 };
 
 
Index: m_option.c
===================================================================
--- m_option.c	(revision 32153)
+++ m_option.c	(working copy)
@@ -1530,7 +1530,7 @@
 			    const char *param, void* dst, int src) {
   char** opts;
   int r;
-  m_obj_params_t* p = opt->priv;
+  const m_obj_params_t* p = opt->priv;
   const m_struct_t* desc;
   char* cpy;
 
@@ -1770,7 +1770,7 @@
   }
 
   if(!strcmp(param,"help")) {
-    m_obj_list_t* ol = opt->priv;
+    const m_obj_list_t* ol = opt->priv;
     mp_msg(MSGT_VFILTER,MSGL_INFO,"Available video filters:\n");
     mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_VIDEO_FILTERS\n");
     for(n = 0 ; ol->list[n] ; n++)
@@ -1972,7 +1972,7 @@
 			    const char *url, void* dst, int src) {
   int pos1, pos2, r, v6addr = 0;
   char *ptr1=NULL, *ptr2=NULL, *ptr3=NULL, *ptr4=NULL;
-  m_struct_t* desc = opt->priv;
+  const m_struct_t* desc = opt->priv;
 
   if(!desc) {
     mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Option %s: Custom URL needs a pointer to a m_struct_t in the priv field.\n",name);
Index: command.c
===================================================================
--- command.c	(revision 32153)
+++ command.c	(working copy)
@@ -1216,7 +1216,7 @@
 static int mp_property_gamma(m_option_t *prop, int action, void *arg,
                              MPContext *mpctx)
 {
-    int *gamma = prop->priv, r, val;
+    int *gamma = (int *)prop->priv, r, val;
 
     if (!mpctx->sh_video)
         return M_PROPERTY_UNAVAILABLE;
Index: m_config.c
===================================================================
--- m_config.c	(revision 32153)
+++ m_config.c	(working copy)
@@ -191,7 +191,7 @@
       pop++;
     }
     if(pop) // We removed some ctx -> set the previous value
-      m_option_set(co->opt,co->opt->p,co->slots->data);
+      m_option_set(co->opt,(void *)co->opt->p,co->slots->data);
   }
 
   config->lvl--;
@@ -248,7 +248,7 @@
     // We always use a dynamic version
     if((arg->type->flags & M_OPT_TYPE_DYNAMIC) && arg->p && (*(void**)arg->p)) {
       *(void**)arg->p = NULL;
-      m_option_set(arg,arg->p,sl->data);
+      m_option_set(arg,(void *)arg->p,sl->data);
     }
     sl->lvl = 0;
     sl->prev = NULL;
@@ -279,7 +279,7 @@
 }
 
 static m_config_option_t*
-m_config_get_co(m_config_t *config, char* arg) {
+m_config_get_co(const m_config_t *config, char* arg) {
   m_config_option_t *co;
 
   for(co = config->opts ; co ; co = co->next ) {
@@ -295,7 +295,7 @@
 }
 
 static int
-m_config_parse_option(m_config_t *config, char* arg, char* param,int set) {
+m_config_parse_option(const m_config_t *config, char* arg, char* param,int set) {
   m_config_option_t *co;
   int r = 0;
 
@@ -372,7 +372,7 @@
     return r;
   // Set the option
   if(set) {
-    m_option_set(co->opt,co->opt->p,co->slots->data);
+    m_option_set(co->opt,(void *)co->opt->p,co->slots->data);
     co->flags |= M_CFG_OPT_SET;
   }
 
@@ -386,7 +386,7 @@
 }
 
 int
-m_config_check_option(m_config_t *config, char* arg, char* param) {
+m_config_check_option(const m_config_t *config, char* arg, char* param) {
   int r;
   mp_msg(MSGT_CFGPARSER, MSGL_DBG2,"Checking %s=%s\n",arg,param);
   r=m_config_parse_option(config,arg,param,0);
@@ -399,7 +399,7 @@
 
 
 const m_option_t*
-m_config_get_option(m_config_t *config, char* arg) {
+m_config_get_option(const m_config_t *config, char* arg) {
   m_config_option_t *co;
 
 #ifdef MP_DEBUG
@@ -417,7 +417,7 @@
 
 
 void
-m_config_print_option_list(m_config_t *config) {
+m_config_print_option_list(const m_config_t *config) {
   char min[50],max[50];
   m_config_option_t* co;
   int count = 0;
@@ -450,7 +450,7 @@
 }
 
 m_profile_t*
-m_config_get_profile(m_config_t* config, char* name) {
+m_config_get_profile(const m_config_t* config, char* name) {
   m_profile_t* p;
   for(p = config->profiles ; p ; p = p->next)
     if(!strcmp(p->name,name)) return p;
@@ -504,7 +504,7 @@
 static int
 parse_profile(const m_option_t *opt, const char *name, const char *param, void *dst, int src)
 {
-  m_config_t* config = opt->priv;
+  const m_config_t* config = opt->priv;
   char** list = NULL;
   int i,r;
   if(param && !strcmp(param,"help")) {
@@ -539,7 +539,7 @@
 
 static void
 set_profile(const m_option_t *opt, void *dst, const void *src) {
-  m_config_t* config = opt->priv;
+  m_config_t* config = (m_config_t*)opt->priv;
   m_profile_t* p;
   char** list = NULL;
   int i;
@@ -555,7 +555,7 @@
 
 static int
 show_profile(m_option_t *opt, char* name, char *param) {
-  m_config_t* config = opt->priv;
+  m_config_t* config = (m_config_t *)opt->priv;
   m_profile_t* p;
   int i,j;
   if(!param) return M_OPT_MISSING_PARAM;
@@ -600,7 +600,7 @@
 
 static int
 list_options(m_option_t *opt, char* name, char *param) {
-  m_config_t* config = opt->priv;
+  const m_config_t* config = opt->priv;
   m_config_print_option_list(config);
   return M_OPT_EXIT;
 }
Index: m_config.h
===================================================================
--- m_config.h	(revision 32153)
+++ m_config.h	(working copy)
@@ -156,20 +156,20 @@
  *  \return See \ref OptionParserReturn.
  */
 int
-m_config_check_option(m_config_t *config, char* arg, char* param);
+m_config_check_option(const m_config_t *config, char* arg, char* param);
 
 /// Get the option matching the given name.
 /** \param config The config object.
  *  \param arg The option's name.
  */
 const struct m_option*
-m_config_get_option(m_config_t *config, char* arg);
+m_config_get_option(const m_config_t *config, char* arg);
 
 /// Print a list of all registered options.
 /** \param config The config object.
  */
 void
-m_config_print_option_list(m_config_t *config);
+m_config_print_option_list(const m_config_t *config);
 
 /// \addtogroup ConfigProfiles
 ///@{
@@ -180,7 +180,7 @@
  *  \return The profile object or NULL.
  */
 m_profile_t*
-m_config_get_profile(m_config_t* config, char* name);
+m_config_get_profile(const m_config_t* config, char* name);
 
 /// Get the profile with the given name, creating it if necessary.
 /** \param config The config object.
-------------- next part --------------
11,34d10
< In file included from cfg-mplayer.h:26:0,
<                  from mplayer.c:350:
< cfg-common.h:299:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:312:5: warning: initialization discards qualifiers from pointer target type
< In file included from cfg-mplayer.h:26:0,
<                  from mplayer.c:350:
< cfg-common.h:458:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:465:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:470:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:474:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:476:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:516:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:519:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:531:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:536:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:558:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:561:5: warning: initialization discards qualifiers from pointer target type
< cfg-common.h:564:5: warning: initialization discards qualifiers from pointer target type
< In file included from mplayer.c:350:0:
< cfg-mplayer.h:346:5: warning: initialization discards qualifiers from pointer target type
< cfg-mplayer.h:353:5: warning: initialization discards qualifiers from pointer target type
< cfg-mplayer.h:354:5: warning: initialization discards qualifiers from pointer target type
< cfg-mplayer.h:355:5: warning: initialization discards qualifiers from pointer target type
< cfg-mplayer.h:357:5: warning: initialization discards qualifiers from pointer target type
635d610
< libmpcodecs/vf_scale.c:708:3: warning: initialization discards qualifiers from pointer target type
687,688d661
< stream/stream.c: In function 'open_stream_plugin':
< stream/stream.c:163:2: warning: initialization discards qualifiers from pointer target type
691,693d663
< stream/stream_cdda.c:97:14: warning: initialization discards qualifiers from pointer target type
< stream/stream_cdda.c:99:17: warning: initialization discards qualifiers from pointer target type
< stream/stream_cdda.c:123:3: warning: initialization discards qualifiers from pointer target type
695a666,1126
> stream/dvb_tune.c: In function 'dvb_tune':
> stream/dvb_tune.c:386:13: warning: 'hi_lo' may be used uninitialized in this function
> stream/dvb_tune.c:328:12: note: 'hi_lo' was declared here
> libdvdnav/dvdnav.c: In function 'dvdnav_get_restrictions':
> libdvdnav/dvdnav.c:1175:3: warning: dereferencing type-punned pointer will break strict-aliasing rules
> libdvdnav/dvdnav.c:1178:5: warning: dereferencing type-punned pointer will break strict-aliasing rules
> In file included from libdvdread4/dvd_reader.c:70:0:
> libdvdread4/md5.h:26:30: warning: "_LIBC" is not defined
> In file included from libdvdread4/md5.c:28:0:
> libdvdread4/md5.h:26:30: warning: "_LIBC" is not defined
> libdvdread4/nav_print.c: In function 'navPrint_PCI_GI':
> libdvdread4/nav_print.c:39:3: warning: dereferencing type-punned pointer will break strict-aliasing rules
> In file included from libmpcodecs/ad_faad.c:46:0:
> ./libfaad2/faad.h:29:9: note: #pragma message: please update faad2 include filename and function names!
> libfaad2/cfft.c:60:13: warning: inline function 'cfftf1' declared but never defined
> libfaad2/cfft.c:60:13: warning: inline function 'cfftf1' declared but never defined
> libfaad2/decoder.c: In function 'NeAACDecInit':
> libfaad2/decoder.c:255:13: warning: passing argument 2 of 'NeAACDecInit2' from incompatible pointer type
> libfaad2/decoder.h:93:20: note: expected 'uint8_t *' but argument is of type 'uint8_t (*)[64]'
> libfaad2/hcr.c:173:9: warning: no previous prototype for 'is_good_cb'
> libfaad2/hcr.c:191:6: warning: no previous prototype for 'read_segment'
> libfaad2/hcr.c:206:6: warning: no previous prototype for 'fill_in_codeword'
> libfaad2/ic_predict.c: In function 'flt_round':
> libfaad2/ic_predict.c:55:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
> libfaad2/ic_predict.c:55:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
> libfaad2/ic_predict.c:55:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
> libfaad2/ic_predict.c:57:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
> libfaad2/ps_dec.c:186:13: warning: redundant redeclaration of 'ps_data_decode'
> libfaad2/ps_dec.c:164:13: note: previous declaration of 'ps_data_decode' was here
> libfaad2/ps_dec.c: In function 'ps_decode':
> libfaad2/ps_dec.c:1036:13: warning: 'temp_delay_ser[0]' may be used uninitialized in this function
> libfaad2/ps_dec.c:1036:13: note: 'temp_delay_ser[0]' was declared here
> libfaad2/ps_dec.c:1036:13: warning: 'temp_delay_ser[1]' may be used uninitialized in this function
> libfaad2/ps_dec.c:1036:13: note: 'temp_delay_ser[1]' was declared here
> libfaad2/ps_dec.c:1036:13: warning: 'temp_delay_ser[2]' may be used uninitialized in this function
> libfaad2/ps_dec.c:1036:13: note: 'temp_delay_ser[2]' was declared here
> libfaad2/sbr_e_nf.c:234:8: warning: no previous prototype for 'calc_Q_div'
> libfaad2/sbr_e_nf.c:353:8: warning: no previous prototype for 'calc_Q_div2'
> libfaad2/sbr_hfadj.c: In function 'calculate_gain':
> libfaad2/sbr_hfadj.c:1173:21: warning: unused variable 'current_res_band_size'
> libfaad2/specrec.c:413:1: warning: "/*" within comment
> libvo/font_load_ft.c: In function 'read_font_desc_ft':
> libvo/font_load_ft.c:1049:10: warning: passing argument 6 of 'prepare_font' discards qualifiers from pointer target type
> libvo/font_load_ft.c:611:12: note: expected 'FT_ULong *' but argument is of type 'const FT_ULong *'
> libvo/font_load_ft.c:1049:10: warning: passing argument 7 of 'prepare_font' discards qualifiers from pointer target type
> libvo/font_load_ft.c:611:12: note: expected 'FT_ULong *' but argument is of type 'const FT_ULong *'
> libmpdemux/demux_gif.c: In function 'demux_gif_fill_buffer':
> libmpdemux/demux_gif.c:93:11: warning: 'transparent_col' may be used uninitialized in this function
> libmpcodecs/vf_bmovl.c: In function 'put_image':
> libmpcodecs/vf_bmovl.c:222:7: warning: 'alpha' may be used uninitialized in this function
> libaf/af_ladspa.c: In function 'control':
> libaf/af_ladspa.c:539:13: warning: pointer of type 'void *' used in arithmetic
> libaf/af_ladspa.c:544:37: warning: wrong type argument to increment
> libaf/af_ladspa.c:555:13: warning: pointer of type 'void *' used in arithmetic
> libaf/af_ladspa.c:590:16: warning: wrong type argument to increment
> av_opts.c: In function 'parse_avopts':
> av_opts.c:41:9: warning: 'av_set_string' is deprecated (declared at libavcodec/opt.h:159)
> libaf/af_lavcresample.c: In function 'play':
> libaf/af_lavcresample.c:122:23: warning: 'ret' may be used uninitialized in this function
> libmpcodecs/vd_ffmpeg.c: In function 'init':
> libmpcodecs/vd_ffmpeg.c:428:9: warning: 'AVPaletteControl' is deprecated (declared at ./libavcodec/avcodec.h:2879)
> libmpcodecs/vd_ffmpeg.c: In function 'decode':
> libmpcodecs/vd_ffmpeg.c:917:6: warning: return discards qualifiers from pointer target type
> libmpcodecs/vf_screenshot.c: In function 'scale_image':
> libmpcodecs/vf_screenshot.c:137:5: warning: passing argument 2 of 'sws_scale' from incompatible pointer type
> ./libswscale/swscale.h:196:5: note: expected 'const uint8_t * const*' but argument is of type 'unsigned char **'
> libmpcodecs/vf_screenshot.c: In function 'draw_slice':
> libmpcodecs/vf_screenshot.c:160:9: warning: passing argument 2 of 'sws_scale' from incompatible pointer type
> ./libswscale/swscale.h:196:5: note: expected 'const uint8_t * const*' but argument is of type 'unsigned char **'
> libmpcodecs/ad_libdv.c: In function 'decode_audio':
> libmpcodecs/ad_libdv.c:106:12: warning: format '%d' expects type 'int', but argument 5 has type 'size_t'
> libmpdemux/demux_rawdv.c: In function 'demux_open_rawdv':
> libmpdemux/demux_rawdv.c:187:4: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
> libmpdemux/demux_rawdv.c:208:4: warning: format '%qu' expects type 'long long unsigned int', but argument 4 has type 'off_t'
> libmpdemux/demux_rawdv.c:208:4: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
> libdvdcss/libdvdcss.c:797:22: warning: no previous prototype for 'dvdcss_title'
> libmpcodecs/vf_pp.c: In function 'put_image':
> libmpcodecs/vf_pp.c:151:7: warning: passing argument 1 of 'pp_postprocess' from incompatible pointer type
> ./libpostproc/postprocess.h:78:7: note: expected 'const uint8_t **' but argument is of type 'unsigned char **'
> stream/stream_smb.c: In function 'open_f':
> stream/stream_smb.c:113:25: warning: unused variable 'p'
> libmpcodecs/ad_mpc.c: In function 'init':
> libmpcodecs/ad_mpc.c:158:5: warning: "MPC_SAMPLE_FORMAT" is not defined
> libmpcodecs/ad_mpc.c:158:26: warning: "float" is not defined
> libmpcodecs/ad_mpc.c:160:8: warning: "MPC_SAMPLE_FORMAT" is not defined
> libmpcodecs/ad_mpc.c:160:29: warning: "mpc_int32_t" is not defined
> libmpcodecs/ad_mpc.c: In function 'decode_audio':
> libmpcodecs/ad_mpc.c:192:5: warning: "MPC_SAMPLE_FORMAT" is not defined
> libmpcodecs/ad_mpc.c:192:26: warning: "float" is not defined
> libmpcodecs/ad_mpc.c: In function 'check_clip':
> libmpcodecs/ad_mpc.c:208:5: warning: "MPC_SAMPLE_FORMAT" is not defined
> libmpcodecs/ad_mpc.c:208:26: warning: "float" is not defined
> stream/asf_streaming.c: In function 'asf_http_parse_response':
> stream/asf_streaming.c:674:7: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
> stream/pnm.c: In function 'open_s':
> stream/pnm.c:505:12: warning: 'nr' may be used uninitialized in this function
> stream/pnm.c:505:12: note: 'nr' was declared here
> libmpcodecs/vd_mpng.c: In function 'pngReadFN':
> libmpcodecs/vd_mpng.c:77:2: warning: 'io_ptr' is deprecated (declared at /usr/include/png.h:1131)
> libmpcodecs/vd_mpng.c: In function 'decode':
> libmpcodecs/vd_mpng.c:114:2: warning: 'color_type' is deprecated (declared at /usr/include/png.h:653)
> libmpcodecs/vd_mpng.c:131:7: warning: 'color_type' is deprecated (declared at /usr/include/png.h:653)
> libmpcodecs/vd_realvid.c: In function 'init':
> libmpcodecs/vd_realvid.c:270:6: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'long unsigned int'
> stream/cache2.c: In function 'cache_execute_control':
> stream/cache2.c:270:7: warning: passing argument 3 of 's->stream->control' discards qualifiers from pointer target type
> stream/cache2.c:270:7: note: expected 'void *' but argument is of type 'volatile double *'
> stream/cache2.c:278:7: warning: passing argument 3 of 's->stream->control' discards qualifiers from pointer target type
> stream/cache2.c:278:7: note: expected 'void *' but argument is of type 'volatile unsigned int *'
> stream/cache2.c: In function 'cache_mainloop':
> stream/cache2.c:362:12: warning: missing braces around initializer
> stream/cache2.c:362:12: warning: (near initialization for 'sa.__sigaction_handler')
> tremor/block.c: In function 'vorbis_synthesis_init':
> tremor/block.c:159:15: warning: assignment discards qualifiers from pointer target type
> tremor/block.c:160:15: warning: assignment discards qualifiers from pointer target type
> tremor/floor0.c:137:6: warning: no previous prototype for 'vorbis_lsp_to_curve'
> tremor/floor0.c: In function 'floor0_look':
> tremor/floor0.c:347:15: warning: unused variable 'scale'
> tremor/mapping0.c: In function 'mapping0_inverse':
> tremor/mapping0.c:301:7: warning: passing argument 2 of '_vorbis_apply_window' from incompatible pointer type
> tremor/window.h:22:13: note: expected 'const void **' but argument is of type 'ogg_int32_t **'
> tremor/res012.c:45:6: warning: no previous prototype for 'res0_free_info'
> tremor/res012.c:53:6: warning: no previous prototype for 'res0_free_look'
> tremor/res012.c:90:22: warning: no previous prototype for 'res0_unpack'
> tremor/res012.c:122:22: warning: no previous prototype for 'res0_look'
> tremor/res012.c:234:5: warning: no previous prototype for 'res0_inverse'
> tremor/res012.c:246:5: warning: no previous prototype for 'res1_inverse'
> tremor/res012.c:259:5: warning: no previous prototype for 'res2_inverse'
> tremor/sharedbook.c:71:15: warning: no previous prototype for '_make_words'
> tremor/sharedbook.c:182:14: warning: no previous prototype for '_book_unquantize'
> tremor/sharedbook.c: In function '_book_unquantize':
> tremor/sharedbook.c:214:18: warning: 'point' may be used uninitialized in this function
> tremor/sharedbook.c:248:18: warning: 'point' may be used uninitialized in this function
> stream/tv.c: In function 'norm_from_string':
> stream/tv.c:235:9: warning: dereferencing type-punned pointer will break strict-aliasing rules
> stream/tvi_def.h:71:13: warning: 'free_handle' defined but not used
> In file included from stream/stream_vcd.c:50:0:
> stream/vcd_read.h:65:5: warning: no previous prototype for 'vcd_seek_to_track'
> libmpdemux/demux_ogg.c: In function 'demux_ogg_seek':
> libmpdemux/demux_ogg.c:1415:16: warning: 'first' may be used uninitialized in this function
> libmpcodecs/vd_xvid4.c: In function 'decode':
> libmpcodecs/vd_xvid4.c:290:17: warning: pointer of type 'void *' used in arithmetic
> asfdec.c: In function 'asf_read_header':
> asfdec.c:390:21: warning: 'AVPaletteControl' is deprecated (declared at ../libavcodec/avcodec.h:2879)
> avidec.c: In function 'avi_read_header':
> avidec.c:544:25: warning: 'AVPaletteControl' is deprecated (declared at ../libavcodec/avcodec.h:2879)
> avidec.c: In function 'read_gab2_sub':
> avidec.c:703:9: warning: passing argument 1 of 'bytestream_get_le32' from incompatible pointer type
> ../libavcodec/bytestream.h:45:1: note: expected 'const uint8_t **' but argument is of type 'uint8_t **'
> avidec.c:718:13: warning: passing argument 1 of 'bytestream_get_le16' from incompatible pointer type
> ../libavcodec/bytestream.h:47:1: note: expected 'const uint8_t **' but argument is of type 'uint8_t **'
> avidec.c:718:13: warning: passing argument 1 of 'bytestream_get_le16' from incompatible pointer type
> ../libavcodec/bytestream.h:47:1: note: expected 'const uint8_t **' but argument is of type 'uint8_t **'
> avidec.c:726:9: warning: passing argument 1 of 'bytestream_get_le32' from incompatible pointer type
> ../libavcodec/bytestream.h:45:1: note: expected 'const uint8_t **' but argument is of type 'uint8_t **'
> avio.c: In function 'register_protocol':
> avio.c:93:5: warning: 'av_register_protocol' is deprecated (declared at avio.c:86)
> aviobuf.c: In function 'url_fdopen':
> aviobuf.c:606:23: warning: passing argument 6 of 'init_put_byte' from incompatible pointer type
> aviobuf.c:43:5: note: expected 'int (*)(void *, uint8_t *, int)' but argument is of type 'int (*)(struct URLContext *, unsigned char *, int)'
> aviobuf.c:606:23: warning: passing argument 7 of 'init_put_byte' from incompatible pointer type
> aviobuf.c:43:5: note: expected 'int (*)(void *, uint8_t *, int)' but argument is of type 'int (*)(struct URLContext *, const unsigned char *, int)'
> aviobuf.c:606:23: warning: passing argument 8 of 'init_put_byte' from incompatible pointer type
> aviobuf.c:43:5: note: expected 'int64_t (*)(void *, int64_t,  int)' but argument is of type 'int64_t (*)(struct URLContext *, int64_t,  int)'
> idcin.c:90:5: warning: 'AVPaletteControl' is deprecated (declared at ../libavcodec/avcodec.h:2879)
> ipmovie.c:119:5: warning: 'AVPaletteControl' is deprecated (declared at ../libavcodec/avcodec.h:2879)
> matroskadec.c: In function 'ebml_parse_elem':
> matroskadec.c:785:14: warning: 'length' may be used uninitialized in this function
> metadata.c: In function 'av_metadata_set2':
> metadata.c:72:37: warning: assignment discards qualifiers from pointer target type
> metadata.c:76:37: warning: assignment discards qualifiers from pointer target type
> mpegenc.c: In function 'flush_packet':
> mpegenc.c:924:9: warning: passing argument 4 of 'av_fifo_generic_read' from incompatible pointer type
> ../libavutil/fifo.h:77:5: note: expected 'void (*)(void *, void *, int)' but argument is of type 'void (*)(struct ByteIOContext *, const unsigned char *, int)'
> nutdec.c: In function 'decode_main_header':
> nutdec.c:282:13: warning: passing argument 2 of 'get_buffer' discards qualifiers from pointer target type
> avio.h:411:5: note: expected 'unsigned char *' but argument is of type 'const uint8_t *'
> rdt.c: In function 'rdt_parse_packet':
> rdt.c:308:9: warning: passing argument 2 of 'init_put_byte' discards qualifiers from pointer target type
> avio.h:321:5: note: expected 'unsigned char *' but argument is of type 'const uint8_t *'
> rmdec.c: In function 'rm_read_packet':
> rmdec.c:823:15: warning: 'st' may be used uninitialized in this function
> rtmpproto.c: In function 'get_packet':
> rtmpproto.c:753:18: warning: assignment discards qualifiers from pointer target type
> rtpdec_asf.c: In function 'asfrtp_parse_packet':
> rtpdec_asf.c:178:9: warning: passing argument 2 of 'init_put_byte' discards qualifiers from pointer target type
> avio.h:321:5: note: expected 'unsigned char *' but argument is of type 'const uint8_t *'
> rtsp.c: In function 'rtsp_fetch_packet':
> rtsp.c:1792:17: warning: 'rtsp_st' may be used uninitialized in this function
> swfenc.c: In function 'swf_write_video':
> swfenc.c:424:9: warning: passing argument 4 of 'av_fifo_generic_read' from incompatible pointer type
> ../libavutil/fifo.h:77:5: note: expected 'void (*)(void *, void *, int)' but argument is of type 'void (*)(struct ByteIOContext *, const unsigned char *, int)'
> wc3movie.c:71:5: warning: 'AVPaletteControl' is deprecated (declared at ../libavcodec/avcodec.h:2879)
> aacps.c: In function 'hybrid_analysis':
> aacps.c:369:9: warning: passing argument 3 of 'hybrid4_8_12_cx' from incompatible pointer type
> aacps.c:338:13: note: expected 'const float (*)[7][2]' but argument is of type 'float (*)[7][2]'
> aacps.c:370:9: warning: passing argument 3 of 'hybrid4_8_12_cx' from incompatible pointer type
> aacps.c:338:13: note: expected 'const float (*)[7][2]' but argument is of type 'float (*)[7][2]'
> aacps.c:371:9: warning: passing argument 3 of 'hybrid4_8_12_cx' from incompatible pointer type
> aacps.c:338:13: note: expected 'const float (*)[7][2]' but argument is of type 'float (*)[7][2]'
> aacps.c:372:9: warning: passing argument 3 of 'hybrid4_8_12_cx' from incompatible pointer type
> aacps.c:338:13: note: expected 'const float (*)[7][2]' but argument is of type 'float (*)[7][2]'
> aacps.c:373:9: warning: passing argument 3 of 'hybrid4_8_12_cx' from incompatible pointer type
> aacps.c:338:13: note: expected 'const float (*)[7][2]' but argument is of type 'float (*)[7][2]'
> aacps.c:381:9: warning: passing argument 3 of 'hybrid6_cx' from incompatible pointer type
> aacps.c:303:13: note: expected 'const float (*)[7][2]' but argument is of type 'float (*)[7][2]'
> aacps.c: In function 'stereo_processing':
> aacps.c:813:34: warning: initialization from incompatible pointer type
> aacps.c: In function 'ff_ps_apply':
> aacps.c:986:5: warning: passing argument 3 of 'decorrelation' from incompatible pointer type
> aacps.c:645:13: note: expected 'const float (*)[32][2]' but argument is of type 'float (*)[32][2]'
> aacsbr.c: In function 'ff_sbr_apply':
> aacsbr.c:1731:9: warning: passing argument 4 of 'sbr_lf_gen' from incompatible pointer type
> aacsbr.c:1337:12: note: expected 'const float (*)[32][32][2]' but argument is of type 'float (*)[32][32][2]'
> aacsbr.c:1733:13: warning: passing argument 3 of 'sbr_hf_inverse_filter' from incompatible pointer type
> aacsbr.c:1261:13: note: expected 'const float (*)[40][2]' but argument is of type 'float (*)[40][2]'
> aacsbr.c:1737:24: warning: passing argument 4 of 'sbr_hf_gen' from incompatible pointer type
> aacsbr.c:1360:12: note: expected 'const float (*)[40][2]' but argument is of type 'float (*)[40][2]'
> aacsbr.c:1737:24: warning: passing argument 5 of 'sbr_hf_gen' from incompatible pointer type
> aacsbr.c:1360:12: note: expected 'const float (*)[2]' but argument is of type 'float (*)[2]'
> aacsbr.c:1737:24: warning: passing argument 6 of 'sbr_hf_gen' from incompatible pointer type
> aacsbr.c:1360:12: note: expected 'const float (*)[2]' but argument is of type 'float (*)[2]'
> aacsbr.c:1744:29: warning: passing argument 2 of 'sbr_hf_assemble' from incompatible pointer type
> aacsbr.c:1608:13: note: expected 'const float (*)[40][2]' but argument is of type 'float (*)[40][2]'
> aacsbr.c:1748:9: warning: passing argument 3 of 'sbr_x_gen' from incompatible pointer type
> aacsbr.c:1412:12: note: expected 'const float (*)[40][2]' but argument is of type 'float (*)[40][2]'
> aacsbr.c:1748:9: warning: passing argument 4 of 'sbr_x_gen' from incompatible pointer type
> aacsbr.c:1412:12: note: expected 'const float (*)[38][64][2]' but argument is of type 'float (*)[38][64][2]'
> avpacket.c: In function 'av_dup_packet':
> avpacket.c:76:5: warning: 'av_destruct_packet_nofree' is deprecated (declared at avpacket.c:25)
> avs.c: In function 'avs_decode_frame':
> avs.c:59:19: warning: 'change_map.buffer' may be used uninitialized in this function
> bmp.c: In function 'bmp_decode_frame':
> bmp.c:51:14: warning: 'rgb[0]' may be used uninitialized in this function
> bmp.c:51:14: warning: 'rgb[1]' may be used uninitialized in this function
> bmp.c:51:14: warning: 'rgb[2]' may be used uninitialized in this function
> dv.c: In function 'dvvideo_decode_frame':
> dv.c:1107:12: warning: assignment discards qualifiers from pointer target type
> dvdsubdec.c: In function 'decode_dvd_subtitles':
> dvdsubdec.c:169:13: warning: 'colormap[3]' may be used uninitialized in this function
> dvdsubdec.c:169:13: warning: 'colormap[2]' may be used uninitialized in this function
> dvdsubdec.c:169:13: warning: 'colormap[1]' may be used uninitialized in this function
> dvdsubdec.c:169:13: warning: 'colormap[0]' may be used uninitialized in this function
> flashsv.c: In function 'flashsv_decode_frame':
> flashsv.c:202:36: warning: assignment discards qualifiers from pointer target type
> h264.c: In function 'fill_filter_caches':
> h264.c:2333:38: warning: initialization from incompatible pointer type
> h264.c:2410:38: warning: initialization from incompatible pointer type
> h264.c:2425:42: warning: initialization from incompatible pointer type
> h264.c: In function 'execute_decode_slices':
> h264.c:2728:31: warning: array subscript is below array bounds
> In file included from h264_cabac.c:40:0:
> x86/h264_i386.h: In function 'decode_significance_x86':
> x86/h264_i386.h:41:22: warning: cast from pointer to integer of different size
> x86/h264_i386.h:42:23: warning: cast from pointer to integer of different size
> x86/h264_i386.h: In function 'decode_significance_8x8_x86':
> x86/h264_i386.h:94:23: warning: cast from pointer to integer of different size
> h264_direct.c: In function 'pred_spatial_direct_motion':
> h264_direct.c:263:12: warning: assignment from incompatible pointer type
> h264_direct.c:264:12: warning: assignment from incompatible pointer type
> h264_direct.c: In function 'pred_temp_direct_motion':
> h264_direct.c:443:12: warning: assignment from incompatible pointer type
> h264_direct.c:444:12: warning: assignment from incompatible pointer type
> idcinvideo.c: In function 'idcin_decode_frame':
> idcinvideo.c:216:5: warning: 'AVPaletteControl' is deprecated (declared at avcodec.h:2879)
> imgconvert.c: In function 'av_picture_data_copy':
> imgconvert.c:802:19: warning: passing argument 3 of 'av_image_copy' from incompatible pointer type
> ../libavcore/imgutils.h:99:6: note: expected 'const uint8_t **' but argument is of type 'uint8_t **'
> imgconvert.c: In function 'av_picture_copy':
> imgconvert.c:810:19: warning: passing argument 3 of 'av_image_copy' from incompatible pointer type
> ../libavcore/imgutils.h:99:6: note: expected 'const uint8_t **' but argument is of type 'uint8_t * const*'
> interplayvideo.c: In function 'ipvideo_decode_frame':
> interplayvideo.c:1045:5: warning: 'AVPaletteControl' is deprecated (declared at avcodec.h:2879)
> ivi_common.c: In function 'ff_ivi_decode_blocks':
> ivi_common.c:333:32: warning: 'mc_type' may be used uninitialized in this function
> ivi_common.c:333:41: warning: 'mv_x' may be used uninitialized in this function
> ivi_common.c:333:47: warning: 'mv_y' may be used uninitialized in this function
> ivi_common.c:336:22: warning: 'sym' may be used uninitialized in this function
> ivi_dsp.c: In function 'ff_ivi_recompose53':
> ivi_dsp.c:40:21: warning: 'b0_1' may be used uninitialized in this function
> ivi_dsp.c:40:27: warning: 'b0_2' may be used uninitialized in this function
> ivi_dsp.c:40:33: warning: 'b1_1' may be used uninitialized in this function
> ivi_dsp.c:40:39: warning: 'b1_2' may be used uninitialized in this function
> ivi_dsp.c:40:45: warning: 'b1_3' may be used uninitialized in this function
> ivi_dsp.c:40:57: warning: 'b2_2' may be used uninitialized in this function
> ivi_dsp.c:40:63: warning: 'b2_3' may be used uninitialized in this function
> ivi_dsp.c:40:75: warning: 'b2_5' may be used uninitialized in this function
> ivi_dsp.c:40:81: warning: 'b2_6' may be used uninitialized in this function
> ivi_dsp.c:41:27: warning: 'b3_2' may be used uninitialized in this function
> ivi_dsp.c:41:33: warning: 'b3_3' may be used uninitialized in this function
> ivi_dsp.c:41:45: warning: 'b3_5' may be used uninitialized in this function
> ivi_dsp.c:41:51: warning: 'b3_6' may be used uninitialized in this function
> ivi_dsp.c:41:63: warning: 'b3_8' may be used uninitialized in this function
> ivi_dsp.c:41:69: warning: 'b3_9' may be used uninitialized in this function
> lcldec.c: In function 'zlib_decomp':
> lcldec.c:136:24: warning: assignment discards qualifiers from pointer target type
> libopenjpeg.c: In function 'libopenjpeg_decode_frame':
> libopenjpeg.c:100:5: warning: passing argument 2 of 'opj_cio_open' discards qualifiers from pointer target type
> /usr/include/openjpeg.h:770:33: note: expected 'unsigned char *' but argument is of type 'const uint8_t *'
> motion_est.c: In function 'h263_mv4_search':
> motion_est.c:602:9: warning: 'P[2][0]' may be used uninitialized in this function
> motion_est.c:602:9: warning: 'P[2][1]' may be used uninitialized in this function
> motion_est.c:602:9: warning: 'P[3][0]' may be used uninitialized in this function
> motion_est.c:602:9: warning: 'P[3][1]' may be used uninitialized in this function
> motion_est.c:602:9: warning: 'P[4][0]' may be used uninitialized in this function
> motion_est.c:602:9: warning: 'P[4][1]' may be used uninitialized in this function
> motion_est.c: In function 'interlaced_search':
> motion_est.c:752:9: warning: 'P[2][0]' may be used uninitialized in this function
> motion_est.c:752:9: warning: 'P[2][1]' may be used uninitialized in this function
> motion_est.c:752:9: warning: 'P[3][0]' may be used uninitialized in this function
> motion_est.c:752:9: warning: 'P[3][1]' may be used uninitialized in this function
> motion_est.c:752:9: warning: 'P[4][0]' may be used uninitialized in this function
> motion_est.c:752:9: warning: 'P[4][1]' may be used uninitialized in this function
> mpeg4videodec.c: In function 'mpeg4_decode_block':
> mpeg4videodec.c:841:9: warning: 'dc_pred_dir' may be used uninitialized in this function
> mpegvideo_enc.c: In function 'encode_thread':
> mpegvideo_enc.c:2368:38: warning: 'dc[0]' may be used uninitialized in this function
> mpegvideo_enc.c:2368:38: warning: 'dc[1]' may be used uninitialized in this function
> mpegvideo_enc.c:2368:38: warning: 'dc[2]' may be used uninitialized in this function
> mpegvideo_enc.c:2368:38: warning: 'dc[3]' may be used uninitialized in this function
> mpegvideo_enc.c:2368:38: warning: 'dc[4]' may be used uninitialized in this function
> mpegvideo_enc.c:2368:38: warning: 'dc[5]' may be used uninitialized in this function
> nuv.c: In function 'copy_frame':
> nuv.c:75:5: warning: passing argument 2 of 'avpicture_fill' discards qualifiers from pointer target type
> avcodec.h:3109:5: note: expected 'uint8_t *' but argument is of type 'const uint8_t *'
> pngdec.c: In function 'png_decode_idat':
> pngdec.c:366:24: warning: assignment discards qualifiers from pointer target type
> pnmdec.c: In function 'pnm_decode_frame':
> pnmdec.c:41:25: warning: assignment discards qualifiers from pointer target type
> pnmdec.c:42:25: warning: assignment discards qualifiers from pointer target type
> ra144enc.c: In function 'find_best_vect':
> ra144enc.c:234:11: warning: 'g' may be used uninitialized in this function
> rangecoder.c: In function 'ff_init_range_decoder':
> rangecoder.c:56:5: warning: passing argument 1 of 'bytestream_get_be16' from incompatible pointer type
> bytestream.h:51:1: note: expected 'const uint8_t **' but argument is of type 'uint8_t **'
> rawdec.c: In function 'raw_decode':
> rawdec.c:148:5: warning: passing argument 2 of 'avpicture_fill' discards qualifiers from pointer target type
> avcodec.h:3109:5: note: expected 'uint8_t *' but argument is of type 'const uint8_t *'
> svq1enc.c: In function 'svq1_write_header':
> svq1enc.c:98:9: warning: passing argument 1 of 'ff_match_2uint16' from incompatible pointer type
> internal.h:49:5: note: expected 'const uint16_t (*)[2]' but argument is of type 'const struct svq1_frame_size *'
> tiff.c: In function 'tiff_uncompress':
> tiff.c:87:21: warning: assignment discards qualifiers from pointer target type
> tscc.c: In function 'decode_frame':
> tscc.c:97:24: warning: assignment discards qualifiers from pointer target type
> utils.c: In function 'avcodec_encode_audio':
> utils.c:542:9: warning: passing argument 4 of 'avctx->codec->encode' discards qualifiers from pointer target type
> utils.c:542:9: note: expected 'void *' but argument is of type 'const short int *'
> utils.c: In function 'avcodec_encode_video':
> utils.c:559:9: warning: passing argument 4 of 'avctx->codec->encode' discards qualifiers from pointer target type
> utils.c:559:9: note: expected 'void *' but argument is of type 'const struct AVFrame *'
> utils.c: In function 'avcodec_encode_subtitle':
> utils.c:578:5: warning: passing argument 4 of 'avctx->codec->encode' discards qualifiers from pointer target type
> utils.c:578:5: note: expected 'void *' but argument is of type 'const struct AVSubtitle *'
> utils.c: In function 'avcodec_decode_video':
> utils.c:590:16: warning: assignment discards qualifiers from pointer target type
> utils.c: In function 'avcodec_decode_audio2':
> utils.c:629:16: warning: assignment discards qualifiers from pointer target type
> utils.c: In function 'avcodec_decode_subtitle':
> utils.c:670:16: warning: assignment discards qualifiers from pointer target type
> v210dec.c: In function 'decode_frame':
> v210dec.c:79:18: warning: 'val' may be used uninitialized in this function
> v210enc.c: In function 'encode_frame':
> v210enc.c:78:18: warning: 'val' may be used uninitialized in this function
> vc1dsp.c: In function 'ff_vc1dsp_init':
> vc1dsp.c:633:39: warning: assignment from incompatible pointer type
> vc1dsp.c:650:39: warning: assignment from incompatible pointer type
> x86/fft_mmx.asm:47: warning: section flags ignored on section redeclaration
> x86/mlpdsp.c:44:36: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:44:56: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:45:36: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:45:56: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:46:36: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:46:56: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:47:36: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:47:56: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:48:36: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:49:36: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:49:56: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:50:36: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:50:56: warning: taking address of expression of type 'void'
> x86/mlpdsp.c:51:36: warning: taking address of expression of type 'void'
> xan.c: In function 'xan_decode_frame':
> xan.c:364:5: warning: 'AVPaletteControl' is deprecated (declared at avcodec.h:2879)
> zmbv.c: In function 'decode_frame':
> zmbv.c:494:28: warning: assignment discards qualifiers from pointer target type
> parseutils.c: In function 'av_parse_video_size':
> parseutils.c:103:11: warning: assignment discards qualifiers from pointer target type
> aes.c: In function 'av_aes_init':
> aes.c:160:9: warning: passing argument 1 of 'init_multbl2' from incompatible pointer type
> aes.c:122:13: note: expected 'uint8_t *' but argument is of type 'uint32_t *'
> aes.c:161:9: warning: passing argument 1 of 'init_multbl2' from incompatible pointer type
> aes.c:122:13: note: expected 'uint8_t *' but argument is of type 'uint32_t *'
> avstring.c: In function 'av_stristr':
> avstring.c:54:9: warning: return discards qualifiers from pointer target type
> avstring.c:58:13: warning: return discards qualifiers from pointer target type
> lls.c: In function 'av_solve_lls':
> lls.c:87:20: warning: array subscript is below array bounds
> In file included from swscale.c:1239:0:
> swscale_template.c: In function 'yuv2yuv1_MMX2':
> swscale_template.c:954:9: warning: initialization from incompatible pointer type
> swscale_template.c:954:9: warning: initialization from incompatible pointer type
> swscale_template.c:954:9: warning: initialization from incompatible pointer type
> swscale_template.c:954:9: warning: initialization from incompatible pointer type
> swscale_template.c: In function 'hyscale_fast_MMX2':
> swscale_template.c:2261:26: warning: initialization from incompatible pointer type
> swscale_template.c: In function 'hcscale_fast_MMX2':
> swscale_template.c:2411:26: warning: initialization from incompatible pointer type
> swscale_template.c: In function 'swScale_MMX2':
> swscale_template.c:2766:42: warning: cast from pointer to integer of different size
> swscale_template.c:2772:46: warning: cast from pointer to integer of different size
> swscale_template.c:2779:42: warning: cast from pointer to integer of different size
> swscale.c: In function 'sws_scale':
> swscale.c:1882:5: warning: passing argument 1 of 'check_image_pointers' from incompatible pointer type
> swscale.c:1852:12: note: expected 'uint8_t **' but argument is of type 'const uint8_t * const*'
> swscale.c:1886:5: warning: passing argument 1 of 'check_image_pointers' discards qualifiers from pointer target type
> swscale.c:1852:12: note: expected 'uint8_t **' but argument is of type 'uint8_t * const*'
> utils.c: In function 'sws_getContext':
> utils.c:923:13: warning: passing argument 5 of 'initMMX2HScaler' from incompatible pointer type
> utils.c:510:12: note: expected 'int32_t *' but argument is of type 'int16_t *'
> utils.c:924:13: warning: passing argument 5 of 'initMMX2HScaler' from incompatible pointer type
> utils.c:510:12: note: expected 'int32_t *' but argument is of type 'int16_t *'
> yuv2rgb.c: In function 'ff_yuv2rgb_c_init_tables':
> yuv2rgb.c:658:39: warning: 'abase' may be used uninitialized in this function
> libmpdemux/muxer_avi.c: In function 'write_avi_chunk':
> libmpdemux/muxer_avi.c:146:2: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'int *'
> libmpdemux/muxer_avi.c:147:2: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'int *'
> libmpdemux/muxer_avi.c: In function 'avifile_odml_new_riff':
> libmpdemux/muxer_avi.c:192:5: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'uint32_t *'
> libmpdemux/muxer_avi.c: In function 'write_avi_list':
> libmpdemux/muxer_avi.c:268:3: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
> libmpdemux/muxer_avi.c:269:3: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'int *'
> libmpdemux/muxer_avi.c:270:3: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'int *'
> libmpdemux/muxer_avi.c: In function 'avifile_write_header':
> libmpdemux/muxer_avi.c:318:11: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
> libmpdemux/muxer_avi.c:323:15: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
> libmpdemux/muxer_avi.c:336:5: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'uint32_t (*)[3]'
> libmpdemux/muxer_avi.c:473:4: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
> libmpdemux/muxer_avi.c:481:8: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
> libmpdemux/muxer_avi.c:497:13: warning: assignment discards qualifiers from pointer target type
> libmpdemux/muxer_avi.c: In function 'avifile_odml_write_index':
> libmpdemux/muxer_avi.c:633:2: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
> libmpdemux/muxer_avi.c:639:6: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
> ./stream/stream.h:187:5: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
> libmpcodecs/ae_faac.c:132:5: warning: no previous prototype for 'close_faac'
> libmpcodecs/ae_faac.c:137:5: warning: no previous prototype for 'mpae_init_faac'
> libmpcodecs/native/rtjpegn.c:1442:13: warning: 'RTjpeg_init_Q' defined but not used
> libmpcodecs/ae_lame.c: In function 'bind_lame':
> libmpcodecs/ae_lame.c:97:5: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'


More information about the MPlayer-dev-eng mailing list