-
-
Notifications
You must be signed in to change notification settings - Fork 300
Open
Description
OS: Arch Linux x86_64 (Linux 6.17.7-arch1-1)
Compiler: clang version 21.1.4
Following the instructions on https://github.com/coronalabs/corona/blob/master/platform/linux/README.md I get errors by the end of the make command:
error: incompatible function pointer types initializing 'size_t (*)(SoundDecoder_Sample *)' (aka 'unsigned long (*)(struct SoundDecoder_Sample *)') with an expression of type 'Uint32 (Sound_Sample *)' (aka 'unsigned int (struct SoundDecoder_Sample *)') [-Wincompatible-function-pointer-types]Here is an example from corona/external/ALmixer/Isolated/LGPL/wav.c
corona/external/ALmixer/Isolated/LGPL/wav.c:89:5: error: incompatible function pointer types initializing 'size_t (*)(SoundDecoder_Sample *)' (aka 'unsigned long (*)(struct SoundDecoder_Sample *)') with an
expression of type 'uint32_t (Sound_Sample *)' (aka 'unsigned int (struct SoundDecoder_Sample *)') [-Wincompatible-function-pointer-types]
89 | WAV_read, /* read() method */
| ^~~~~~~~
corona/external/ALmixer/Isolated/LGPL/wav.c:91:5: error: incompatible function pointer types initializing 'int (*)(SoundDecoder_Sample *, size_t)' (aka 'int (*)(struct SoundDecoder_Sample *, unsigned long)') with
an expression of type 'int (Sound_Sample *, uint32_t)' (aka 'int (struct SoundDecoder_Sample *, unsigned int)') [-Wincompatible-function-pointer-types]
91 | WAV_seek /* seek() method */
| ^~~~~~~~Is there a way to fix it or disable enforcing the warning -Wincompatible-function-pointer-types as an error?
Metadata
Metadata
Assignees
Labels
No labels