[FFmpeg-devel] [PATCH] atoll() replacement for WinCE
Martin Storsjö
martin
Wed Jul 15 18:25:32 CEST 2009
On Wed, 15 Jul 2009, M?ns Rullg?rd wrote:
> Martin Storsj? <martin at martin.st> writes:
>
> > On Wed, 15 Jul 2009, M?ns Rullg?rd wrote:
> >
> >> > That kind of check produces a warning on 64-bit architectures, though:
> >> > warning: cast from pointer to integer of different size
> >>
> >> New idea:
> >>
> >> return !functionThatDoesNotExist;
> >>
> >> Should be warning-free.
> >
> > No, unfortunately not:
> > test.c:3: warning: the address of 'functionThatDoesntExist', will always
> > evaluate as 'true'
> >
> > And the compiler optimizes the whole access away...
>
> Oh damn. Use (long) then. That should be warning-free on most
> machines.
Great! This seems to work just fine. Patch attached.
// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-check_func_headers.patch
Type: text/x-diff
Size: 427 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090715/dba47029/attachment.patch>
More information about the ffmpeg-devel
mailing list