Skip to content

Commit d38c431

Browse files
authored
Merge pull request #3910 from grandixximo/fix/warning-non-RTAI-build
fixes warnings on non RTAI builds
2 parents b3e718e + 5ac3480 commit d38c431

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/hal/hal_lib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,6 +1907,7 @@ int hal_export_functf(void (*funct) (void *, long),
19071907
int hal_export_funct(const char *name, void (*funct) (void *, long),
19081908
void *arg, int uses_fp, int reentrant, int comp_id)
19091909
{
1910+
(void)uses_fp;
19101911
rtapi_intptr_t *prev, next;
19111912
int cmp;
19121913
hal_funct_t *new, *fptr;
@@ -2034,6 +2035,7 @@ int hal_export_funct(const char *name, void (*funct) (void *, long),
20342035

20352036
int hal_create_thread(const char *name, unsigned long period_nsec, int uses_fp)
20362037
{
2038+
(void)uses_fp;
20372039
int next, cmp, prev_priority;
20382040
int retval, n;
20392041
hal_thread_t *new, *tptr;

src/rtapi/uspace_rtapi_app.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ int RtapiApp::allocate_task_id()
957957
}
958958

959959
int RtapiApp::task_new(void (*taskcode) (void*), void *arg,
960-
int prio, int owner, unsigned long int stacksize, int uses_fp) {
960+
int prio, int owner, unsigned long int stacksize, int /*uses_fp*/) {
961961
/* check requested priority */
962962
if (!prio_check(prio))
963963
{

0 commit comments

Comments
 (0)