[MPlayer-dev-eng] [PATCH] Avoid pointer cast warnings

Stephen Sheldon sfsheldo at gmail.com
Mon Feb 17 18:00:19 CET 2014


On 2/16/2014 7:03 PM, Ingo Brückl wrote:
> So I assume this is necessary for 64-bit machines as well?
>
> Ingo
I have been ignoring those complaints when I compile with mingw64, 
because obviously nothing is getting truncated.  In fact, I don't get a 
complaint for those particular lines, but from 2 others.

mplayer.c: In function 'main':
mplayer.c:3065:28: warning: cast to pointer from integer of different 
size [-Wint-to-pointer-cast]
          gui(GUI_SET_STATE, (void *)(filename ? GUI_PLAY : GUI_STOP));
                             ^
mplayer.c:3107:42: warning: cast to pointer from integer of different 
size [-Wint-to-pointer-cast]
                      gui(GUI_RUN_COMMAND, (void *)cmd->id);



More information about the MPlayer-dev-eng mailing list