whitequark / libfx2

Chip support package for Cypress EZ-USB FX2 series microcontrollers
BSD Zero Clause License
73 stars 26 forks source link

SDCC 4.2.9/4.3.0+ fixes #13

Closed vifino closed 11 months ago

vifino commented 1 year ago

I've fixed the build for libfx2 with new SDCC versions. This fixes #11.

In addition, I've also made all functions that take no arguments declare a proper prototype. This silences sdcc compiler warning 283 and makes the code more correct.

I tested with SDCC 4.2.0 and SDCC 4.3.0.

whitequark commented 11 months ago

I cherry-picked 28b6557 (the prototype fix) which is fine. I then tried to rebase this PR on main so that only the other commit is left for discussion, but failed and unintentionally closed the PR.

I would like to see a fix not involving sdcc version sniffing.