Skip to content

Commit 202aec2

Browse files
committed
EVL: Fix warnings
1 parent ce9faee commit 202aec2

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/rtapi/uspace_rtai.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ struct RtaiApp : RtapiApp {
115115
}
116116

117117
int task_pll_set_correction(long value) {
118+
(void)value;
118119
// PLL functions not supported
119120
return -EINVAL;
120121
}
@@ -133,6 +134,7 @@ struct RtaiApp : RtapiApp {
133134
#ifdef HAVE_SYS_IO_H
134135
return inb(port);
135136
#else
137+
(void)port;
136138
return 0;
137139
#endif
138140
}
@@ -141,6 +143,7 @@ struct RtaiApp : RtapiApp {
141143
#ifdef HAVE_SYS_IO_H
142144
return outb(val, port);
143145
#else
146+
(void)port;
144147
return 0;
145148
#endif
146149
}

src/rtapi/uspace_xenomai.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,12 @@ struct XenomaiApp : RtapiApp {
9999
}
100100

101101
int task_pause(int task_id) {
102+
(void)task_id;
102103
return -ENOSYS;
103104
}
104105

105106
int task_resume(int task_id) {
107+
(void)task_id;
106108
return -ENOSYS;
107109
}
108110

src/rtapi/uspace_xenomai_evl.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,12 @@ struct XenomaiApp : RtapiApp {
117117
}
118118

119119
int task_pause(int task_id) {
120+
(void)task_id;
120121
return -ENOSYS;
121122
}
122123

123124
int task_resume(int task_id) {
125+
(void)task_id;
124126
return -ENOSYS;
125127
}
126128

0 commit comments

Comments
 (0)