text-engine
text-engine copied to clipboard
'-Wincompatible-pointer-types' diagnostics cause build failure with GCC 14
Several files' compilation will trigger -Wincompatible-pointer-types diagnostics. This will prevent the project from being successfully built on Fedora 40 and other GNU/Linux distributions that use GCC 14 because, on GCC 14, -Wincompatible-pointer-types is treated as an error rather than a warning.
Steps to reproduce:
- Clone this repository and enter the directory that contains the clone.
- If
gcc --versionreports GCC 14 or above, then runmeson setup build; Otherwise, runCFLAGS="-Werror=incompatible-pointer-types" meson setup build. - Run
meson compile -C build.