[x264-devel] [PATCH 3/3] checkasm: arm: Check register clobbering
Henrik Gramner
henrik at gramner.com
Fri Aug 28 10:59:15 CEST 2015
On Fri, Aug 28, 2015 at 8:38 AM, Martin Storsjö <martin at martin.st> wrote:
> I actually did test this originally, but it didn't work; when compiling I
> got the following warning:
>
> tools/checkasm.c: In function 'check_pixel':
> tools/checkasm.c:388:30: warning: function called through a non-compatible
> type [enabled by default]
> tools/checkasm.c:388:30: note: if this code is reached, the program will
> abort
>
> (And as the warning says, it aborts at runtime.)
>
> However, this was before I changed x264_checkasm_call into a function
> pointer (to be able to distinguish between the neon and noneon versions);
> after that, it works just fine.
Yes, that's expected. AFAIK you can't cast a function to another
function like you can with function pointers.
More information about the x264-devel
mailing list