chore: Fix a bunch of compile warnings (#2748)
* chore: fix warnings for simu and firmware, part 1 * chore: fix warnings
This commit is contained in:
@@ -342,7 +342,7 @@ bool isSwitchAvailable(int swtch, SwitchContext context)
|
||||
|
||||
#if NUM_XPOTS > 0
|
||||
if (swtch >= SWSRC_FIRST_MULTIPOS_SWITCH && swtch <= SWSRC_LAST_MULTIPOS_SWITCH) {
|
||||
int index = (swtch - SWSRC_FIRST_MULTIPOS_SWITCH) / XPOTS_MULTIPOS_COUNT;
|
||||
int index __attribute__((unused)) = (swtch - SWSRC_FIRST_MULTIPOS_SWITCH) / XPOTS_MULTIPOS_COUNT;
|
||||
return IS_POT_MULTIPOS(POT1+index);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user