File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ int _getpid(void) {}
53
53
extern int __real__write (int fd, const char *ptr, int len);
54
54
55
55
int __wrap__write (int fd, const char *ptr, int len) {
56
+ (void )fd; // UNUSED
57
+
56
58
int i;
57
59
58
60
if (!Serial) {
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ class SERCOM
245
245
uint32_t getFreqRef (void ) { return freqRef; };
246
246
#else
247
247
// The equivalent SAMD21 dummy functions...
248
- void setClockSource (int8_t idx, SercomClockSource src, bool core) {idx = 0 ; src = SERCOM_CLOCK_SOURCE_FCPU; core = false ; };
248
+ void setClockSource (int8_t idx, SercomClockSource src, bool core) { ( void )idx; ( void ) src; ( void ) core; };
249
249
SercomClockSource getClockSource (void ) { return SERCOM_CLOCK_SOURCE_FCPU; };
250
250
uint32_t getFreqRef (void ) { return F_CPU; };
251
251
#endif
You can’t perform that action at this time.
0 commit comments