DCC-EX / EX-IOExpander

Digital and Analogue I/O expander using Arduino AVR
GNU General Public License v3.0
8 stars 5 forks source link

[To Do]: Clean up compile time warnings in the device driver #19

Closed peteGSX closed 1 year ago

peteGSX commented 1 year ago

Task description

From @habazut , I need to clean up the device driver compile time warnings when compiling with no EX-IOExpander device being created:

I would like if you would have a look at all the warning messages about unused variables when compiling the parts of the CS that should talk to the expander when having none or so. You can force the compiler to accept that a variable is unused by doing the (void) thing:

void foo(int i) { (void)i; return; }

peteGSX commented 1 year ago

Quick review this morning, looks like the variables are actually not referenced anywhere and are probably left over from v0.0.1 when in MCP23017 emulation mode. Should be able to just remove these.

peteGSX commented 1 year ago

Closed by https://github.com/DCC-EX/CommandStation-EX/pull/288