Closed mattiarmston closed 4 months ago
So I just tested on my current GCC 13 and I also get those messages, but as warnings, not errors. Then I upgraded to 14 and now they're errors.
By default, in C99 and later dialects of C, GCC treats this issue as an error. The error can be downgraded to a warning using -fpermissive (along with certain other errors), or for this error alone, with -Wno-error=incompatible-pointer-types. (source)
So that's fun. It turns out that while T*
is convertible to const T*
, T**
is not convertible to const T**
!
So you've not done anything wrong - we should add -Wno-error=incompatible-pointer-types
to the Makefile cflags for now, and fix those pointer incompatibilities. You can continue building locally by adding that flag.
I have compiled and installed version 1.13 and wanted to contribute however when compiling HEAD I ran into the errors below. I am able to compile earlier versions and using
git bisect
I found the first commit to cause this error on my machine is 9c35671.Running
make bin/brogue
outputs multiple errors such as:I am using Arch Linux, GCC version 14.1.1 and GNU Make version 4.4.1.
Could you please point out what I have missed or done wrong.
Matti