x86: mlpdsp: avoid taking address of void
authorMans Rullgard <mans@mansr.com>
Sun, 12 Aug 2012 01:08:46 +0000 (02:08 +0100)
committerMans Rullgard <mans@mansr.com>
Mon, 13 Aug 2012 13:51:52 +0000 (14:51 +0100)
commitc8252e80eb1d0d0964e94b3186bfdb776fee99d6
treec3eaec09584f570689d405209023deeb994e154d
parent87fa05a0dae629cdad390adaa1054db3f4ecc3c7
x86: mlpdsp: avoid taking address of void

This code contains a C array of addresses of labels defined in
inline asm.  To do this, the names must be declared as external
in C.  The declared type does not matter since only the address is
used, and for some reason, the author of the code used the 'void'
type despite taking the address of a void expression being invalid.

Changing the type to char, a reasonable choice since the alignment
of the code labels cannot be known or guaranteed, eliminates gcc
warnings and allows building with suncc.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/x86/mlpdsp.c