text-engine icon indicating copy to clipboard operation
text-engine copied to clipboard

'-Wincompatible-pointer-types' diagnostics cause build failure with GCC 14

Open Leo3418 opened this issue 1 year ago • 0 comments

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:

  1. Clone this repository and enter the directory that contains the clone.
  2. If gcc --version reports GCC 14 or above, then run meson setup build; Otherwise, run CFLAGS="-Werror=incompatible-pointer-types" meson setup build.
  3. Run meson compile -C build.

build.log

Leo3418 avatar May 04 '24 18:05 Leo3418