picosonic / bbc-fdc

Floppy disk interface for Raspberry Pi
MIT License
243 stars 22 forks source link

Gcc Compilation Issue #17

Closed ajgbarnes closed 3 years ago

ajgbarnes commented 3 years ago

I tried compiling this on the following configuration:

And received the following errors:

hardware.c:8:5: error: conflicting types for ‘hw_maxtracks’
 int hw_maxtracks = HW_MAXTRACKS;
     ^~~~~~~~~~~~
In file included from hardware.c:5:
hardware.h:43:21: note: previous declaration of ‘hw_maxtracks’ was here
 extern unsigned int hw_maxtracks;
                     ^~~~~~~~~~~~
hardware.c:9:5: error: conflicting types for ‘hw_currenttrack’
 int hw_currenttrack = 0;
     ^~~~~~~~~~~~~~~
In file included from hardware.c:5:
hardware.h:44:21: note: previous declaration of ‘hw_currenttrack’ was here
 extern unsigned int hw_currenttrack;
                     ^~~~~~~~~~~~~~~
hardware.c:10:5: error: conflicting types for ‘hw_currenthead’
 int hw_currenthead = 0;
     ^~~~~~~~~~~~~~
In file included from hardware.c:5:
hardware.h:45:21: note: previous declaration of ‘hw_currenthead’ was here
 extern unsigned int hw_currenthead;
                     ^~~~~~~~~~~~~~

It was complaining about unsigned versus (implicitly) signed int mismatch.

I created a pull request for this #16

picosonic commented 3 years ago

Thanks