doomhack / GBADoom

A port of prBoom to the Nintendo GBA.
189 stars 27 forks source link

source of compiler issues #54

Closed Cavencruiser closed 22 hours ago

Cavencruiser commented 1 month ago

https://github.com/doomhack/GBADoom/blame/3bd2cf34fb66dd60f9b66efe25cc1d6945a21f74/source/hu_lib.c#L80

Emendo12 commented 2 days ago

I have this compiler issue as well.

FrenkelS commented 1 day ago

What happens when you remove that line?

doomhack commented 22 hours ago

Seems that the Doom code play fast and loose with pointer types. Assigning pointers (*) to double pointer (**) vars etc.

The code is wrong but worked before because a pointer is a pointer.....

I'll try to fix this over the next couple of evenings...

doomhack commented 22 hours ago

Here we have it.

https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors

doomhack commented 22 hours ago

Adding the -fpermissive flag 'fixes' this. The code is wrong but it's been wrong since 1993...

If you do a fresh pull, it should build with latest DevKitPro.