PortMidi / portmidi

portmidi is a cross-platform MIDI input/output library
Other
118 stars 33 forks source link

Add missing return type #26

Closed nidefawl closed 2 years ago

nidefawl commented 2 years ago

I encountered this error while trying to cross compile (linux to windows):

/data/dev/daw-deps/portmidi/pm_win/pmwinmm.c:256:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static improve_winerr(int pm_hosterror, char *message)
~~~~~~ ^

This fixes compilation when the compiler enforces C99.

rbdannenberg commented 2 years ago

Thanks for the report -- I'm not sure why this went unnoticed. I didn't to any real testing or produce another release version yet since this seems very straightforward and should not even affect the generated code.