Skip to content

Commit 1c54409

Browse files
committed
change unused warning workaround to (void)parameter
1 parent f7707da commit 1c54409

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

libraries/MySensors/core/MyHwSAMD.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -113,25 +113,25 @@ void hwReboot() {
113113

114114
int8_t hwSleep(unsigned long ms) {
115115
// TODO: Not supported!
116-
ms = ms + 1;
116+
(void)ms;
117117
return -2;
118118
}
119119

120120
int8_t hwSleep(uint8_t interrupt, uint8_t mode, unsigned long ms) {
121121
// TODO: Not supported!
122-
interrupt = interrupt;
123-
mode = mode;
124-
ms = ms;
122+
(void)interrupt;
123+
(void)mode;
124+
(void)ms;
125125
return -2;
126126
}
127127

128128
int8_t hwSleep(uint8_t interrupt1, uint8_t mode1, uint8_t interrupt2, uint8_t mode2, unsigned long ms) {
129129
// TODO: Not supported!
130-
interrupt1 = interrupt1;
131-
mode1 = mode1;
132-
interrupt2 = interrupt2;
133-
mode2 = mode2;
134-
ms = ms;
130+
(void)interrupt1;
131+
(void)mode1;
132+
(void)interrupt2;
133+
(void)mode2;
134+
(void)ms;
135135
return -2;
136136
}
137137

libraries/MySensors/core/MySensorCore.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ int8_t sleep(uint8_t interrupt, uint8_t mode, unsigned long ms) {
353353
#endif
354354
#if defined(MY_REPEATER_FEATURE)
355355
// not supported
356-
interrupt = interrupt;
357-
mode = mode;
358-
ms = ms;
356+
(void)interrupt;
357+
(void)mode;
358+
(void)ms;
359359
return -2;
360360
#else
361361
#if defined(MY_RADIO_FEATURE)
@@ -383,11 +383,11 @@ int8_t sleep(uint8_t interrupt1, uint8_t mode1, uint8_t interrupt2, uint8_t mode
383383
#endif
384384
#if defined(MY_REPEATER_FEATURE)
385385
// not supported
386-
interrupt1 = interrupt1;
387-
mode1 = mode1;
388-
interrupt2 = interrupt2;
389-
mode2 = mode2;
390-
ms = ms;
386+
(void)interrupt1;
387+
(void)mode1;
388+
(void)interrupt2;
389+
(void)mode2;
390+
(void)ms;
391391
return -2;
392392
#else
393393
#if defined(MY_RADIO_FEATURE)

0 commit comments

Comments
 (0)