gcc10 compile fix
Posted: Fri Jan 31, 2020 1:57 pm
I would have put this in bugzilla, but I couldn't quite figure out how to get an account there, so I'll put it here instead.
Fedora 32 will use GCC 10, which sets -fno-common by default. This broke the rocks'n'diamonds compile, because the following variables are defined in multiple places:
struct SetupInfo setup;
int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
The attached patch comments them out of src/main.c and resolves the issue.
Fedora 32 will use GCC 10, which sets -fno-common by default. This broke the rocks'n'diamonds compile, because the following variables are defined in multiple places:
struct SetupInfo setup;
int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
The attached patch comments them out of src/main.c and resolves the issue.