• Mans Rullgard's avatar
    x86: mlpdsp: avoid taking address of void · c8252e80
    Mans Rullgard authored
    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: 's avatarMans Rullgard <mans@mansr.com>
    c8252e80
mlpdsp.c 6.15 KB