[Flac-dev] Patch : Fix pointer cast warning

Josh Coalson xflac at yahoo.com
Wed Jun 13 23:11:52 PDT 2007


excellent, thanks for the tip.  this solves the problem for
autoconf-based builds, but still not sure how to do it for MSVC.

Josh

--- Erik de Castro Lopo <erikd-flac at mega-nerd.com> wrote:

> Hi all,
> 
> The code currently in CVS gives a compile warning:
> 
>   memory.c: In function 'FLAC__memory_alloc_aligned':
>   memory.c:52: warning: cast from pointer to integer of different
size
>   memory.c:52: warning: cast to pointer from integer of different
size
> 
> The patch below fixes this warning by detecting the sizeof (void*)
> at configure time and then using that for a little pointer
> arithmetic.
> 
> Cheers,
> Erik



      ____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 




More information about the Flac-dev mailing list